accessapi

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerClient

type ControllerClient struct {
	// contains filtered or unexported fields
}

ControllerClient implements platform.AccessApi for cloudlet services by connecting to the Controller. To avoid having to change the Controller's API if we need to add new functions to the platform.AccessApi interface, all requests to the Controller go through a generic single API. Data is marshaled here. Unmarshaling is done in ControllerHandler.

func (*ControllerClient) CreateCloudletNode

func (s *ControllerClient) CreateCloudletNode(ctx context.Context, cloudletNode *edgeproto.CloudletNode) (string, error)

func (*ControllerClient) CreateOrUpdateDNSRecord

func (s *ControllerClient) CreateOrUpdateDNSRecord(ctx context.Context, name, rtype, content string, ttl int, proxy bool) error

func (*ControllerClient) DeleteCloudletNode

func (s *ControllerClient) DeleteCloudletNode(ctx context.Context, key *edgeproto.CloudletNodeKey) error

func (*ControllerClient) DeleteDNSRecord

func (s *ControllerClient) DeleteDNSRecord(ctx context.Context, name string) error

func (*ControllerClient) GetAppSecretVars

func (s *ControllerClient) GetAppSecretVars(ctx context.Context, appKey *edgeproto.AppKey) (map[string]string, error)

func (*ControllerClient) GetCloudletAccessVars

func (s *ControllerClient) GetCloudletAccessVars(ctx context.Context) (map[string]string, error)

func (*ControllerClient) GetDNSRecords

func (s *ControllerClient) GetDNSRecords(ctx context.Context, fqdn string) ([]dnsapi.Record, error)

func (*ControllerClient) GetFederationAPIKey

func (s *ControllerClient) GetFederationAPIKey(ctx context.Context, fedKey *federationmgmt.FedKey) (*federationmgmt.ApiKey, error)

func (*ControllerClient) GetKafkaCreds

func (s *ControllerClient) GetKafkaCreds(ctx context.Context) (*node.KafkaCreds, error)

func (*ControllerClient) GetOldSSHKey

func (s *ControllerClient) GetOldSSHKey(ctx context.Context) (*vault.MEXKey, error)

func (*ControllerClient) GetPublicCert

func (s *ControllerClient) GetPublicCert(ctx context.Context, commonName string) (*vault.PublicCert, error)

func (*ControllerClient) GetRegistryAuth

func (s *ControllerClient) GetRegistryAuth(ctx context.Context, imgUrl string) (*cloudcommon.RegistryAuth, error)

func (*ControllerClient) GetSSHPublicKey

func (s *ControllerClient) GetSSHPublicKey(ctx context.Context) (string, error)

func (*ControllerClient) GetSessionTokens

func (s *ControllerClient) GetSessionTokens(ctx context.Context, secretName string) (string, error)

func (*ControllerClient) SignSSHKey

func (s *ControllerClient) SignSSHKey(ctx context.Context, publicKey string) (string, error)

Jump to

Keyboard shortcuts

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