Documentation ¶
Index ¶
- type K8s
- func (k8s *K8s) CreateNamespace(name string) error
- func (k8s *K8s) FindPod(namespace, label string) (result string, err error)
- func (k8s *K8s) ForwardPod(name, namespace, local, remote string) chan struct{}
- func (k8s *K8s) FromConfigMap(name, namespace, key string) (result string, err error)
- func (k8s *K8s) FromSecret(name, namespace, key string) (result string, err error)
- type Manifest
- func (m *Manifest) Connect(k8s interface{})
- func (m *Manifest) Delete() error
- func (m *Manifest) Execute(spec runtime.Object, do action, result chan error)
- func (m *Manifest) GetInput() []byte
- func (m *Manifest) InstallOrUpgrade() error
- func (m *Manifest) Lint(key string, in *util.Values) error
- func (m *Manifest) SetInput(obj []byte)
- func (m *Manifest) Status() (bool, error)
- func (m *Manifest) Workflow(do action) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8s ¶
type K8s struct {
// contains filtered or unexported fields
}
K8s represents a connection to kubernetes
func NewFakeClient ¶ added in v0.3.0
func NewFakeClient() *K8s
NewFakeClient returns a testing instance
func (*K8s) CreateNamespace ¶
CreateNamespace tells the k8s api to make a namespace
func (*K8s) ForwardPod ¶
ForwardPod establishes a persistent connection to a remote pod
func (*K8s) FromConfigMap ¶
FromConfigMap reads an entry from a ConfigMap
type Manifest ¶
type Manifest struct { Namespace string `yaml:"namespace"` // namespace Timeout int64 `yaml:"timeout"` // install / upgrade wait time Remove bool `yaml:"remove"` // remove once installed Object []byte *K8s }
Manifest represents a kubernetes definition
func (*Manifest) Connect ¶
func (m *Manifest) Connect(k8s interface{})
Connect links the manifest to the k8 api
func (*Manifest) InstallOrUpgrade ¶ added in v0.4.3
Install the decoded kubernetes objects
Click to show internal directories.
Click to hide internal directories.