Documentation ¶
Index ¶
- type ApplyOpts
- type DiffOpts
- type Differ
- type ErrorMissingConfig
- type ErrorNotFound
- type ErrorPrimitiveReached
- type FilteredErr
- type Kubectl
- func (k Kubectl) Apply(yaml, namespace string, opts ApplyOpts) error
- func (k Kubectl) Diff(yaml string) (*string, error)
- func (k Kubectl) Get(namespace, kind, name string) (map[string]interface{}, error)
- func (k Kubectl) SubsetDiff(y string) (*string, error)
- func (k Kubectl) Version() (client, server semver.Version, err error)
- type Kubernetes
- func (k *Kubernetes) Apply(state []Manifest, opts ApplyOpts) error
- func (k *Kubernetes) Diff(state []Manifest, opts DiffOpts) (*string, error)
- func (k *Kubernetes) Fmt(state []Manifest) (string, error)
- func (k *Kubernetes) Reconcile(raw map[string]interface{}, objectspecs ...*regexp.Regexp) (state []Manifest, err error)
- type Manifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffOpts ¶ added in v0.4.0
type DiffOpts struct {
Summarize bool
}
DiffOpts allow to specify additional parameters for diff operations
type ErrorMissingConfig ¶ added in v0.4.0
type ErrorMissingConfig struct {
Verb string
}
func (ErrorMissingConfig) Error ¶ added in v0.4.0
func (e ErrorMissingConfig) Error() string
type ErrorNotFound ¶
type ErrorNotFound struct {
// contains filtered or unexported fields
}
func (ErrorNotFound) Error ¶
func (e ErrorNotFound) Error() string
type ErrorPrimitiveReached ¶
type ErrorPrimitiveReached struct {
// contains filtered or unexported fields
}
ErrorPrimitiveReached occurs when walkJSON reaches the end of nested dicts without finding a valid Kubernetes manifest
func (ErrorPrimitiveReached) Error ¶
func (e ErrorPrimitiveReached) Error() string
type FilteredErr ¶ added in v0.4.0
FilteredErr is a filtered Stderr. If one of the regular expressions match, the current input is discarded.
type Kubectl ¶
type Kubectl struct { APIServer string // contains filtered or unexported fields }
Kubectl uses the `kubectl` command to operate on a Kubernetes cluster
func (Kubectl) Diff ¶
Diff takes a desired state as yaml and returns the differences to the system in common diff format
type Kubernetes ¶
Kubernetes bridges tanka to the Kubernetse orchestrator.
func (*Kubernetes) Apply ¶
func (k *Kubernetes) Apply(state []Manifest, opts ApplyOpts) error
Apply receives a state object generated using `Reconcile()` and may apply it to the target system
func (*Kubernetes) Diff ¶
func (k *Kubernetes) Diff(state []Manifest, opts DiffOpts) (*string, error)
Diff takes the desired state and returns the differences from the cluster