deployment

package
v0.0.0-...-a746158 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

pods implements kube.Coder interface for deployment of pods

Index

Constants

View Source
const (
	PackageName       = "kube/deployment"
	DefaultConfigDir  = ".config/" + PackageName
	DefaultConfigFile = "config.json"
	Kind              = "Deployment"
	APIVersion        = "apps/v1"
)

Variables

This section is empty.

Functions

func NewCoder

func NewCoder(ctx context.Context, configReader configio.ConfigReader, key string, clientset *kubernetes.Clientset, namespace string) (kube.Coder, error)

Types

type Config

type Config struct {
	Deployment *v1.Deployment
	// contains filtered or unexported fields
}

Config wraps v1.Endpoints so that it can be managed using configio

func (*Config) Init

func (conf *Config) Init(key string) *Config

func (*Config) Key

func (conf *Config) Key() string

func (*Config) Marshal

func (conf *Config) Marshal() ([]byte, error)

func (*Config) Unmarshal

func (conf *Config) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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