Documentation ¶
Index ¶
- func Init(portalProxy interfaces.PortalProxy) error
- func ListConnectedKubernetes() ([]*interfaces.ConnectedEndpoint, error)
- func ListKubernetes() ([]*interfaces.CNSIRecord, *clientcmdapi.Config, error)
- type CFConfigFile
- type Desktop
- type EndpointStore
- func (d *EndpointStore) Delete(guid string) error
- func (d *EndpointStore) Find(guid string, encryptionKey []byte) (interfaces.CNSIRecord, error)
- func (d *EndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (interfaces.CNSIRecord, error)
- func (d *EndpointStore) List(encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
- func (d *EndpointStore) ListByAPIEndpoint(endpoint string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
- func (d *EndpointStore) ListByCreator(userGUID string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
- func (d *EndpointStore) ListByUser(userGUID string) ([]*interfaces.ConnectedEndpoint, error)
- func (d *EndpointStore) Save(guid string, cnsiRecord interfaces.CNSIRecord, encryptionKey []byte) error
- func (d *EndpointStore) SaveOrUpdate(endpoint interfaces.CNSIRecord, encryptionKey []byte) error
- func (d *EndpointStore) Update(endpoint interfaces.CNSIRecord, encryptionKey []byte) error
- func (d *EndpointStore) 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 ListConnectedKubernetes ¶
func ListConnectedKubernetes() ([]*interfaces.ConnectedEndpoint, error)
ListConnectedCloudFoundry will list Cloud Foundry endpoints configured locally (can be only one)
func ListKubernetes ¶
func ListKubernetes() ([]*interfaces.CNSIRecord, *clientcmdapi.Config, error)
ListKubernetes 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 for Kubernetes
func (*Desktop) EndpointStore ¶
func (br *Desktop) EndpointStore() (interfaces.EndpointRepository, error)
EndpointStore gets store for obtaining endpoint information
func (*Desktop) TokenStore ¶
func (br *Desktop) TokenStore() (interfaces.TokenRepository, error)
TokenStore gets store for obtaining endpoint information
type EndpointStore ¶
type EndpointStore struct {
// contains filtered or unexported fields
}
func (*EndpointStore) Delete ¶
func (d *EndpointStore) Delete(guid string) error
func (*EndpointStore) Find ¶
func (d *EndpointStore) Find(guid string, encryptionKey []byte) (interfaces.CNSIRecord, error)
func (*EndpointStore) FindByAPIEndpoint ¶
func (d *EndpointStore) FindByAPIEndpoint(endpoint string, encryptionKey []byte) (interfaces.CNSIRecord, error)
func (*EndpointStore) List ¶
func (d *EndpointStore) List(encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
func (*EndpointStore) ListByAPIEndpoint ¶
func (d *EndpointStore) ListByAPIEndpoint(endpoint string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
func (*EndpointStore) ListByCreator ¶
func (d *EndpointStore) ListByCreator(userGUID string, encryptionKey []byte) ([]*interfaces.CNSIRecord, error)
func (*EndpointStore) ListByUser ¶
func (d *EndpointStore) ListByUser(userGUID string) ([]*interfaces.ConnectedEndpoint, error)
func (*EndpointStore) Save ¶
func (d *EndpointStore) Save(guid string, cnsiRecord interfaces.CNSIRecord, encryptionKey []byte) error
func (*EndpointStore) SaveOrUpdate ¶
func (d *EndpointStore) SaveOrUpdate(endpoint interfaces.CNSIRecord, encryptionKey []byte) error
func (*EndpointStore) Update ¶
func (d *EndpointStore) Update(endpoint interfaces.CNSIRecord, encryptionKey []byte) error
func (*EndpointStore) UpdateMetadata ¶
func (d *EndpointStore) 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
Click to show internal directories.
Click to hide internal directories.