nl

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: 8 Imported by: 0

Documentation

Overview

nl implements kube.Coder interface for nodelist

Index

Constants

View Source
const (
	PackageName       = "kube/nl"
	DefaultConfigDir  = ".config/" + PackageName
	DefaultConfigFile = "config.json"
)

Variables

This section is empty.

Functions

func NewCoder

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

Types

type Config

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

Config wraps v1.ConfigMap 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