Documentation
¶
Index ¶
- func FindLocalCloudFoundry(cnsiGUID string) (*api.CNSIRecord, error)
- func Init(portalProxy api.PortalProxy) (api.StratosPlugin, error)
- func IsLocalCloudFoundry(cnsiGUID string) bool
- func ListCloudFoundry() ([]*api.CNSIRecord, error)
- func ListConnectedCloudFoundry() ([]*api.ConnectedEndpoint, error)
- type CFConfigFile
- type Desktop
- func (br *Desktop) AddAdminGroupRoutes(echoGroup *echo.Group)
- func (br *Desktop) AddSessionGroupRoutes(echoGroup *echo.Group)
- func (br *Desktop) EndpointStore() (api.EndpointRepository, error)
- func (br *Desktop) GetEndpointPlugin() (api.EndpointPlugin, error)
- func (br *Desktop) GetMiddlewarePlugin() (api.MiddlewarePlugin, error)
- func (br *Desktop) GetRoutePlugin() (api.RoutePlugin, error)
- func (br *Desktop) Init() error
- func (br *Desktop) TokenStore() (api.TokenRepository, error)
- type DesktopEndpointStore
- func (d *DesktopEndpointStore) Delete(guid string) error
- func (d *DesktopEndpointStore) Find(guid string, encryptionKey []byte) (api.CNSIRecord, error)
- func (d *DesktopEndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (api.CNSIRecord, error)
- func (d *DesktopEndpointStore) List(encryptionKey []byte) ([]*api.CNSIRecord, error)
- func (d *DesktopEndpointStore) ListByAPIEndpoint(endpoint string, encryptionKey []byte) ([]*api.CNSIRecord, error)
- func (d *DesktopEndpointStore) ListByCreator(userGUID string, encryptionKey []byte) ([]*api.CNSIRecord, error)
- func (d *DesktopEndpointStore) ListByUser(userGUID string) ([]*api.ConnectedEndpoint, error)
- func (d *DesktopEndpointStore) Save(guid string, cnsiRecord api.CNSIRecord, encryptionKey []byte) error
- func (d *DesktopEndpointStore) SaveOrUpdate(endpoint api.CNSIRecord, encryptionKey []byte) error
- func (d *DesktopEndpointStore) Update(endpoint api.CNSIRecord, encryptionKey []byte) error
- func (d *DesktopEndpointStore) UpdateMetadata(guid string, metadata string) error
- type TokenStore
- func (d *TokenStore) DeleteCNSIToken(cnsiGUID string, userGUID string) error
- func (d *TokenStore) DeleteCNSITokens(cnsiGUID string) error
- func (d *TokenStore) FindAllCNSITokenBackup(cnsiGUID string, encryptionKey []byte) ([]api.BackupTokenRecord, error)
- func (d *TokenStore) FindAuthToken(userGUID string, encryptionKey []byte) (api.TokenRecord, error)
- func (d *TokenStore) FindCNSIToken(cnsiGUID string, userGUID string, encryptionKey []byte) (api.TokenRecord, error)
- func (d *TokenStore) FindCNSITokenIncludeDisconnected(cnsiGUID string, userGUID string, encryptionKey []byte) (api.TokenRecord, error)
- func (d *TokenStore) SaveAuthToken(userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error
- func (d *TokenStore) SaveCNSIToken(cnsiGUID string, userGUID string, tokenRecord api.TokenRecord, ...) error
- func (d *TokenStore) UpdateTokenAuth(userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLocalCloudFoundry ¶
func FindLocalCloudFoundry(cnsiGUID string) (*api.CNSIRecord, error)
func Init ¶
func Init(portalProxy api.PortalProxy) (api.StratosPlugin, error)
Init creates a new Autoscaler
func IsLocalCloudFoundry ¶
func ListCloudFoundry ¶
func ListCloudFoundry() ([]*api.CNSIRecord, error)
ListCloudFoundry will list Cloud Foundry endpoints configured locally (can be only one)
func ListConnectedCloudFoundry ¶
func ListConnectedCloudFoundry() ([]*api.ConnectedEndpoint, error)
ListConnectedCloudFoundry will list Cloud Foundry endpoints configured locally (can be only one)
Types ¶
type CFConfigFile ¶
type CFConfigFile struct {
APIEndpoint string `json:"Target"`
AuthorizationEndpoint string `json:"AuthorizationEndpoint"`
TokenEndpoint string `json:"UaaEndpoint"`
DopplerLoggingEndpoint string `json:"DopplerEndPoint"`
SkipSSLValidation bool `json:"SSLDisabled"`
ClientID string `json:"UAAOAuthClient"`
ClientSecret string `json:"UAAOAuthClientSecret"`
AccessToken string `json:"AccessToken"`
RefreshToken string `json:"RefreshToken"`
}
CFConfigFile represents the data we need for CF config file
type Desktop ¶
type Desktop struct {
// contains filtered or unexported fields
}
Desktop - Desktop hosting plugin
func (*Desktop) AddAdminGroupRoutes ¶
AddAdminGroupRoutes adds the admin routes for this plugin to the Echo server
func (*Desktop) AddSessionGroupRoutes ¶
AddSessionGroupRoutes adds the session routes for this plugin to the Echo server
func (*Desktop) EndpointStore ¶
func (br *Desktop) EndpointStore() (api.EndpointRepository, error)
EndpointStore gets store for obtaining endpoint information
func (*Desktop) GetEndpointPlugin ¶
func (br *Desktop) GetEndpointPlugin() (api.EndpointPlugin, error)
GetEndpointPlugin gets the endpoint plugin for this plugin
func (*Desktop) GetMiddlewarePlugin ¶
func (br *Desktop) GetMiddlewarePlugin() (api.MiddlewarePlugin, error)
GetMiddlewarePlugin gets the middleware plugin for this plugin
func (*Desktop) GetRoutePlugin ¶
func (br *Desktop) GetRoutePlugin() (api.RoutePlugin, error)
GetRoutePlugin gets the route plugin for this plugin
func (*Desktop) TokenStore ¶
func (br *Desktop) TokenStore() (api.TokenRepository, error)
TokenStore gets store for obtaining endpoint information
type DesktopEndpointStore ¶
type DesktopEndpointStore struct {
// contains filtered or unexported fields
}
func (*DesktopEndpointStore) Delete ¶
func (d *DesktopEndpointStore) Delete(guid string) error
func (*DesktopEndpointStore) Find ¶
func (d *DesktopEndpointStore) Find(guid string, encryptionKey []byte) (api.CNSIRecord, error)
func (*DesktopEndpointStore) FindByAPIEndpoint ¶
func (d *DesktopEndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (api.CNSIRecord, error)
func (*DesktopEndpointStore) List ¶
func (d *DesktopEndpointStore) List(encryptionKey []byte) ([]*api.CNSIRecord, error)
func (*DesktopEndpointStore) ListByAPIEndpoint ¶
func (d *DesktopEndpointStore) ListByAPIEndpoint(endpoint string, encryptionKey []byte) ([]*api.CNSIRecord, error)
func (*DesktopEndpointStore) ListByCreator ¶
func (d *DesktopEndpointStore) ListByCreator(userGUID string, encryptionKey []byte) ([]*api.CNSIRecord, error)
func (*DesktopEndpointStore) ListByUser ¶
func (d *DesktopEndpointStore) ListByUser(userGUID string) ([]*api.ConnectedEndpoint, error)
func (*DesktopEndpointStore) Save ¶
func (d *DesktopEndpointStore) Save(guid string, cnsiRecord api.CNSIRecord, encryptionKey []byte) error
func (*DesktopEndpointStore) SaveOrUpdate ¶
func (d *DesktopEndpointStore) SaveOrUpdate(endpoint api.CNSIRecord, encryptionKey []byte) error
func (*DesktopEndpointStore) Update ¶
func (d *DesktopEndpointStore) Update(endpoint api.CNSIRecord, encryptionKey []byte) error
func (*DesktopEndpointStore) UpdateMetadata ¶
func (d *DesktopEndpointStore) UpdateMetadata(guid string, metadata string) error
type TokenStore ¶
type TokenStore struct {
// contains filtered or unexported fields
}
TokenStore is a token store that combines local tokens with the usual database stored tokens
func (*TokenStore) DeleteCNSIToken ¶
func (d *TokenStore) DeleteCNSIToken(cnsiGUID string, userGUID string) error
func (*TokenStore) DeleteCNSITokens ¶
func (d *TokenStore) DeleteCNSITokens(cnsiGUID string) error
func (*TokenStore) FindAllCNSITokenBackup ¶
func (d *TokenStore) FindAllCNSITokenBackup(cnsiGUID string, encryptionKey []byte) ([]api.BackupTokenRecord, error)
func (*TokenStore) FindAuthToken ¶
func (d *TokenStore) FindAuthToken(userGUID string, encryptionKey []byte) (api.TokenRecord, error)
func (*TokenStore) FindCNSIToken ¶
func (d *TokenStore) FindCNSIToken(cnsiGUID string, userGUID string, encryptionKey []byte) (api.TokenRecord, error)
func (*TokenStore) FindCNSITokenIncludeDisconnected ¶
func (d *TokenStore) FindCNSITokenIncludeDisconnected(cnsiGUID string, userGUID string, encryptionKey []byte) (api.TokenRecord, error)
func (*TokenStore) SaveAuthToken ¶
func (d *TokenStore) SaveAuthToken(userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error
func (*TokenStore) SaveCNSIToken ¶
func (d *TokenStore) SaveCNSIToken(cnsiGUID string, userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error
func (*TokenStore) UpdateTokenAuth ¶
func (d *TokenStore) UpdateTokenAuth(userGUID string, tokenRecord api.TokenRecord, encryptionKey []byte) error
UpdateTokenAuth will update a token's auth data