kubernetes

package
v0.0.0-...-f34f428 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(portalProxy interfaces.PortalProxy) error

Init performs plugin initialization

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL