k8

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 7 Imported by: 1

README

ply-k8

ply kubernetes interface implementations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientSet

func NewClientSet(config Config) (*kubernetes.Clientset, error)

Types

type Config

type Config struct {
	OnKubernetes bool
	Config       *rest.Config
}

func NewConfig

func NewConfig() (Config, error)

type ConfigInterface

type ConfigInterface struct {
	Namespace
	ClientSet *kubernetes.Clientset
	// contains filtered or unexported fields
}

func (*ConfigInterface) Config

func (c *ConfigInterface) Config(ctx context.Context, name string) (map[string]interface{}, error)

type Namespace

type Namespace string

type SecretInterface

type SecretInterface struct {
	Namespace Namespace
	ClientSet *kubernetes.Clientset
	// contains filtered or unexported fields
}

func (*SecretInterface) Secret

func (c *SecretInterface) Secret(ctx context.Context, name string) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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