kubecfg

package
v0.0.0-...-2169ce8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationGcTag annotation that triggers
	// garbage collection. Objects with value equal to
	// command-line flag that are *not* in config will be deleted.
	AnnotationGcTag = "kubecfg.ksonnet.io/garbage-collect-tag"

	// AnnotationGcStrategy controls gc logic.  Current values:
	// `auto` (default if absent) - do garbage collection
	// `ignore` - never garbage collect this object
	AnnotationGcStrategy = "kubecfg.ksonnet.io/garbage-collect-strategy"

	// GcStrategyAuto is the default automatic gc logic
	GcStrategyAuto = "auto"
	// GcStrategyIgnore means this object should be ignored by garbage collection
	GcStrategyIgnore = "ignore"
)

Variables

View Source
var ErrDiffFound = fmt.Errorf("Differences found.")

Functions

This section is empty.

Types

type ApplyCmd

type ApplyCmd struct {
	ClientPool       dynamic.ClientPool
	Discovery        discovery.DiscoveryInterface
	DefaultNamespace string

	Create bool
	GcTag  string
	SkipGc bool
	DryRun bool
}

ApplyCmd represents the apply subcommand

func (ApplyCmd) Run

func (c ApplyCmd) Run(apiObjects []*unstructured.Unstructured, wd metadata.AbsPath) error

type DeleteCmd

type DeleteCmd struct {
	ClientPool       dynamic.ClientPool
	Discovery        discovery.DiscoveryInterface
	DefaultNamespace string

	GracePeriod int64
}

DeleteCmd represents the delete subcommand

func (DeleteCmd) Run

func (c DeleteCmd) Run(apiObjects []*unstructured.Unstructured) error

type DiffCmd

type DiffCmd struct {
	ClientPool       dynamic.ClientPool
	Discovery        discovery.DiscoveryInterface
	DefaultNamespace string

	DiffStrategy string
}

DiffCmd represents the diff subcommand

func (DiffCmd) Run

func (c DiffCmd) Run(apiObjects []*unstructured.Unstructured, out io.Writer) error

type EnvAddCmd

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

func NewEnvAddCmd

func NewEnvAddCmd(name, uri, specFlag string, manager metadata.Manager) (*EnvAddCmd, error)

func (*EnvAddCmd) Run

func (c *EnvAddCmd) Run() error

type EnvListCmd

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

func NewEnvListCmd

func NewEnvListCmd(manager metadata.Manager) (*EnvListCmd, error)

func (*EnvListCmd) Run

func (c *EnvListCmd) Run(out io.Writer) error

type EnvRmCmd

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

func NewEnvRmCmd

func NewEnvRmCmd(name string, manager metadata.Manager) (*EnvRmCmd, error)

func (*EnvRmCmd) Run

func (c *EnvRmCmd) Run() error

type EnvSetCmd

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

func NewEnvSetCmd

func NewEnvSetCmd(name, desiredName, desiredURI string, manager metadata.Manager) (*EnvSetCmd, error)

func (*EnvSetCmd) Run

func (c *EnvSetCmd) Run() error

type InitCmd

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

func NewInitCmd

func NewInitCmd(rootPath metadata.AbsPath, specFlag string, serverURI *string) (*InitCmd, error)

func (*InitCmd) Run

func (c *InitCmd) Run() error

type ShowCmd

type ShowCmd struct {
	Format string
}

ShowCmd represents the show subcommand

func (ShowCmd) Run

func (c ShowCmd) Run(apiObjects []*unstructured.Unstructured, out io.Writer) error

type ValidateCmd

type ValidateCmd struct {
	Discovery discovery.DiscoveryInterface
}

ValidateCmd represents the validate subcommand

func (ValidateCmd) Run

func (c ValidateCmd) Run(apiObjects []*unstructured.Unstructured, out io.Writer) error

Jump to

Keyboard shortcuts

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