config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KfConfig added in v0.4.0

type KfConfig struct {
	// When DryRun is true, we don't write to disk and we don't commit/push
	DryRun bool

	// When DumpMode is true, we just dump everything once and exit
	DumpMode bool

	// Logger should be used to send all logs
	Logger *logrus.Logger

	// Client represents a connection to a Kubernetes cluster
	Client *rest.Config

	// GitURL is the address of a remote git repository
	GitURL string

	// LocalDir is the local path where we'll serialize cluster objets
	LocalDir string

	// Filter holds a facultative Kubernetes selector
	Filter string

	// ExcludeKind holds a list of resources types we won't dump
	ExcludeKind []string

	// ExcludeObject holds a list of objects we won't dump
	ExcludeObject []string

	// HealthPort is the facultative healthcheck port
	HealthPort int

	// ResyncIntv define the duration between full resync. Set to 0 to disable resyncs.
	ResyncIntv time.Duration
}

KfConfig holds the configuration options passed at launch time (and the rest client)

func (*KfConfig) Init added in v0.4.0

func (c *KfConfig) Init(apiserver string, kubeconfig string) (err error)

Init initialize the config

Jump to

Keyboard shortcuts

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