client

package
v0.0.0-...-48d3ca6 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Testvars _testvars

Functions

func InvokeGetResource

func InvokeGetResource(appContextId string) error

func InvokeInstallApp

func InvokeInstallApp(appContextId string) error

InvokeInstallApp will make the grpc call to the resource synchronizer or rsync controller. rsync will deploy the resources in the app context to the clusters as prepared in the app context.

func InvokeUninstallApp

func InvokeUninstallApp(appContextId string) error

Types

type KubernetesClient

type KubernetesClient struct {
	Context    string
	ConfigPath string
	KubeConfig []byte
}

func NewClient

func NewClient(context string, configPath string, kubeConfig []byte) *KubernetesClient

func (*KubernetesClient) GetCMClients

func (*KubernetesClient) IsReachable

func (c *KubernetesClient) IsReachable() bool

func (*KubernetesClient) KubernetesClientSet

func (c *KubernetesClient) KubernetesClientSet() (*kubernetes.Clientset, error)

func (*KubernetesClient) ToRESTConfig

func (c *KubernetesClient) ToRESTConfig() (*rest.Config, error)

type RsyncInfo

type RsyncInfo struct {
	RsyncName string
	// contains filtered or unexported fields
}

RsyncInfo consists of rsyncName, hostName and portNumber.

func NewRsyncInfo

func NewRsyncInfo(rName, h string, pN int) RsyncInfo

NewRsyncInfo shall return a newly created RsyncInfo object

Jump to

Keyboard shortcuts

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