k8s

package
v0.6.111 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultClient

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

func (DefaultClient) GetK8sClient

func (c DefaultClient) GetK8sClient() *kubernetes.Clientset

func (DefaultClient) GetK8sRestConfig

func (c DefaultClient) GetK8sRestConfig() *rest.Config

type DefaultWorkspaceGroupClientMapper added in v0.2.0

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

func NewDefaultWorkspaceGroupClientMapper added in v0.2.0

func NewDefaultWorkspaceGroupClientMapper(k8sStore K8sStore) (*DefaultWorkspaceGroupClientMapper, error)

func (DefaultWorkspaceGroupClientMapper) GetK8sAPIURL added in v0.2.0

func (d DefaultWorkspaceGroupClientMapper) GetK8sAPIURL(workspaceGroupID string) (string, error)

func (DefaultWorkspaceGroupClientMapper) GetK8sClient added in v0.2.0

func (d DefaultWorkspaceGroupClientMapper) GetK8sClient(workspaceGroupID string) (K8sClient, error)

func (DefaultWorkspaceGroupClientMapper) GetPrivateKey added in v0.2.0

func (d DefaultWorkspaceGroupClientMapper) GetPrivateKey() string

type K8sClient

type K8sClient interface {
	GetK8sClient() *kubernetes.Clientset
	GetK8sRestConfig() *rest.Config
}

func NewDefaultClient

func NewDefaultClient(config K8sClientConfig) K8sClient

type K8sClientConfig

type K8sClientConfig interface {
	GetHost() string
	GetCert() []byte
	GetKey() []byte
	GetCA() []byte
}

type K8sStore added in v0.3.0

type K8sStore interface {
	GetCurrentUserKeys() (*entity.UserKeys, error)
}

type RemoteK8sClientConfig added in v0.2.0

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

func (RemoteK8sClientConfig) GetCA added in v0.2.0

func (k RemoteK8sClientConfig) GetCA() []byte

func (RemoteK8sClientConfig) GetCert added in v0.2.0

func (k RemoteK8sClientConfig) GetCert() []byte

func (RemoteK8sClientConfig) GetHost added in v0.2.0

func (k RemoteK8sClientConfig) GetHost() string

func (RemoteK8sClientConfig) GetKey added in v0.2.0

func (k RemoteK8sClientConfig) GetKey() []byte

type WorkspaceGroupClientMapper added in v0.2.0

type WorkspaceGroupClientMapper interface {
	GetK8sClient(workspaceGroupID string) (K8sClient, error)
	GetK8sAPIURL(workspaceGroupID string) (string, error)
}

Jump to

Keyboard shortcuts

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