Documentation ¶
Index ¶
- func FindLocalCloudFoundry(cnsiGUID string) (*interfaces.CNSIRecord, error)
- func Init(portalProxy interfaces.PortalProxy) (interfaces.StratosPlugin, error)
- func IsLocalCloudFoundry(cnsiGUID string) bool
- func ListCloudFoundry() ([]*interfaces.CNSIRecord, error)
- func ListConnectedCloudFoundry() ([]*interfaces.ConnectedEndpoint, error)
- type CFConfigFile
- type Desktop
- func (br *Desktop) AddAdminGroupRoutes(echoGroup *echo.Group)
- func (br *Desktop) AddSessionGroupRoutes(echoGroup *echo.Group)
- func (br *Desktop) EndpointStore() (interfaces.EndpointRepository, error)
- func (br *Desktop) GetEndpointPlugin() (interfaces.EndpointPlugin, error)
- func (br *Desktop) GetMiddlewarePlugin() (interfaces.MiddlewarePlugin, error)
- func (br *Desktop) GetRoutePlugin() (interfaces.RoutePlugin, error)
- func (br *Desktop) Init() error
- func (br *Desktop) TokenStore() (interfaces.TokenRepository, error)
- type DesktopEndpointStore
- func (d *DesktopEndpointStore) Delete(guid string) error
- func (d *DesktopEndpointStore) Find(guid string, encryptionKey []byte) (interfaces.CNSIRecord, error)
- func (d *DesktopEndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (interfaces.CNSIRecord, error)
- func (d *DesktopEndpointStore) List(encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
- func (d *DesktopEndpointStore) ListByAPIEndpoint(endpoint string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
- func (d *DesktopEndpointStore) ListByCreator(userGUID string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
- func (d *DesktopEndpointStore) ListByUser(userGUID string) ([]*interfaces.ConnectedEndpoint, error)
- func (d *DesktopEndpointStore) Save(guid string, cnsiRecord interfaces.CNSIRecord, encryptionKey []byte) error
- func (d *DesktopEndpointStore) SaveOrUpdate(endpoint interfaces.CNSIRecord, encryptionKey []byte) error
- func (d *DesktopEndpointStore) Update(endpoint interfaces.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) ([]interfaces.BackupTokenRecord, error)
- func (d *TokenStore) FindAuthToken(userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)
- func (d *TokenStore) FindCNSIToken(cnsiGUID string, userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)
- func (d *TokenStore) FindCNSITokenIncludeDisconnected(cnsiGUID string, userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)
- func (d *TokenStore) SaveAuthToken(userGUID string, tokenRecord interfaces.TokenRecord, encryptionKey []byte) error
- func (d *TokenStore) SaveCNSIToken(cnsiGUID string, userGUID string, tokenRecord interfaces.TokenRecord, ...) error
- func (d *TokenStore) UpdateTokenAuth(userGUID string, tokenRecord interfaces.TokenRecord, encryptionKey []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLocalCloudFoundry ¶
func FindLocalCloudFoundry(cnsiGUID string) (*interfaces.CNSIRecord, error)
func Init ¶
func Init(portalProxy interfaces.PortalProxy) (interfaces.StratosPlugin, error)
Init creates a new Autoscaler
func IsLocalCloudFoundry ¶
func ListCloudFoundry ¶
func ListCloudFoundry() ([]*interfaces.CNSIRecord, error)
ListCloudFoundry will list Cloud Foundry endpoints configured locally (can be only one)
func ListConnectedCloudFoundry ¶
func ListConnectedCloudFoundry() ([]*interfaces.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 ¶
func (br *Desktop) AddAdminGroupRoutes(echoGroup *echo.Group)
AddAdminGroupRoutes adds the admin routes for this plugin to the Echo server
func (*Desktop) AddSessionGroupRoutes ¶
func (br *Desktop) AddSessionGroupRoutes(echoGroup *echo.Group)
AddSessionGroupRoutes adds the session routes for this plugin to the Echo server
func (*Desktop) EndpointStore ¶
func (br *Desktop) EndpointStore() (interfaces.EndpointRepository, error)
EndpointStore gets store for obtaining endpoint information
func (*Desktop) GetEndpointPlugin ¶
func (br *Desktop) GetEndpointPlugin() (interfaces.EndpointPlugin, error)
GetEndpointPlugin gets the endpoint plugin for this plugin
func (*Desktop) GetMiddlewarePlugin ¶
func (br *Desktop) GetMiddlewarePlugin() (interfaces.MiddlewarePlugin, error)
GetMiddlewarePlugin gets the middleware plugin for this plugin
func (*Desktop) GetRoutePlugin ¶
func (br *Desktop) GetRoutePlugin() (interfaces.RoutePlugin, error)
GetRoutePlugin gets the route plugin for this plugin
func (*Desktop) TokenStore ¶
func (br *Desktop) TokenStore() (interfaces.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) (interfaces.CNSIRecord, error)
func (*DesktopEndpointStore) FindByAPIEndpoint ¶
func (d *DesktopEndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (interfaces.CNSIRecord, error)
func (*DesktopEndpointStore) List ¶
func (d *DesktopEndpointStore) List(encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
func (*DesktopEndpointStore) ListByAPIEndpoint ¶
func (d *DesktopEndpointStore) ListByAPIEndpoint(endpoint string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
func (*DesktopEndpointStore) ListByCreator ¶
func (d *DesktopEndpointStore) ListByCreator(userGUID string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
func (*DesktopEndpointStore) ListByUser ¶
func (d *DesktopEndpointStore) ListByUser(userGUID string) ([]*interfaces.ConnectedEndpoint, error)
func (*DesktopEndpointStore) Save ¶
func (d *DesktopEndpointStore) Save(guid string, cnsiRecord interfaces.CNSIRecord, encryptionKey []byte) error
func (*DesktopEndpointStore) SaveOrUpdate ¶
func (d *DesktopEndpointStore) SaveOrUpdate(endpoint interfaces.CNSIRecord, encryptionKey []byte) error
func (*DesktopEndpointStore) Update ¶
func (d *DesktopEndpointStore) Update(endpoint interfaces.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) ([]interfaces.BackupTokenRecord, error)
func (*TokenStore) FindAuthToken ¶
func (d *TokenStore) FindAuthToken(userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)
func (*TokenStore) FindCNSIToken ¶
func (d *TokenStore) FindCNSIToken(cnsiGUID string, userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)
func (*TokenStore) FindCNSITokenIncludeDisconnected ¶
func (d *TokenStore) FindCNSITokenIncludeDisconnected(cnsiGUID string, userGUID string, encryptionKey []byte) (interfaces.TokenRecord, error)
func (*TokenStore) SaveAuthToken ¶
func (d *TokenStore) SaveAuthToken(userGUID string, tokenRecord interfaces.TokenRecord, encryptionKey []byte) error
func (*TokenStore) SaveCNSIToken ¶
func (d *TokenStore) SaveCNSIToken(cnsiGUID string, userGUID string, tokenRecord interfaces.TokenRecord, encryptionKey []byte) error
func (*TokenStore) UpdateTokenAuth ¶
func (d *TokenStore) UpdateTokenAuth(userGUID string, tokenRecord interfaces.TokenRecord, encryptionKey []byte) error
UpdateTokenAuth will update a token's auth data