func AddBlockedServiceName(s string)
mark a service as blocked by name
func AddExportedServiceName(name string)
mark a service as exported.
func AddRegistryChangeReceiver(f func())
func AddServiceName(s string)
add a service name to the list of services being used
func GetCloudName() string
return the name of the cloud we are connected to
func GetPublicSigningKey() *pb.KeyResponse
func GetText() map[string]string
func NotifyRegistryChangeListeners()
func RegisterInfoProvider(name string, ip func() []*InfoValue)
func RemoveBlockedServiceName(s string)
unmark a service as blocked by name
func SetPublicSigningKey(k *pb.KeyResponse)
func SignAllbytes(in *pb.User) []byte
get all the bytes from a proto that ought to be signed
func VerifyBytes(b []byte, signature []byte) bool
func VerifySignature(u *pb.User) bool
user has 2 signatures, one for the ID only and one "full" over all fields. this one verifies the "full" signature (e.g. true indicates that the all fields in the user object have been created by a 'real' auth-service and can be trusted)
func VerifySignedUser(u *pb.SignedUser) *pb.User
check signature from signed user, and if valid return user. otherwise nil
type BlockedService struct {
Name string
Counter int
}
func GetBlockedConnectionNames() []*BlockedService
get services that are used, but are currently blocked because no targets are available
type InfoValue struct {
Name string
Value float64
}
type Service struct {
Name string
}
func GetConnectionNames() []*Service
get all services used