desktop

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLocalCloudFoundry

func FindLocalCloudFoundry(cnsiGUID string) (*interfaces.CNSIRecord, error)

func Init

Init creates a new Autoscaler

func IsLocalCloudFoundry

func IsLocalCloudFoundry(cnsiGUID string) bool

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) Init

func (br *Desktop) Init() error

Init performs plugin initialization

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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