k8s

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockSecret

func MockSecret(name, namespace string, data map[string][]byte) *corev1.Secret

func NewMockClient

func NewMockClient(obj ...runtime.Object) *kube.K8sClient

NewMockClient returns an initialized Mock Client object

Types

type Service

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

Service contains a K8s client

func NewService

func NewService(deploymentID string, client *kube.K8sClient, encryptor types.Encryptor) (*Service, error)

func (*Service) DeleteEntry

func (ss *Service) DeleteEntry(appName, scope, name string) error

func (*Service) GetCurrentVersion

func (ss *Service) GetCurrentVersion(appName, scope string) (int64, error)

func (*Service) GetEntries

func (ss *Service) GetEntries(appName, scope string) (map[string]interface{}, error)

func (*Service) GetEntry

func (ss *Service) GetEntry(appName, scope, name string) (interface{}, error)

func (*Service) GetLatestVersion

func (ss *Service) GetLatestVersion(appName, scope string) (int64, error)

func (*Service) ListAppNames

func (ss *Service) ListAppNames() ([]string, error)

func (*Service) ListEntries

func (ss *Service) ListEntries(appName, scope string) ([]string, error)

func (*Service) Read

func (ss *Service) Read(appName, scope string) error

func (*Service) SetEntries

func (ss *Service) SetEntries(appName, scope string, data map[string]interface{}) error

func (*Service) SetEntry

func (ss *Service) SetEntry(appName, scope, name string, value interface{}) error

func (*Service) Write

func (ss *Service) Write(appName, scope string) error

Jump to

Keyboard shortcuts

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