Documentation
¶
Index ¶
- Constants
- func ConfigurationView() (string, error)
- type Kubernetes
- func (k *Kubernetes) PodsDelete(ctx context.Context, namespace, name string) (string, error)
- func (k *Kubernetes) PodsGet(ctx context.Context, namespace, name string) (string, error)
- func (k *Kubernetes) PodsListInAllNamespaces(ctx context.Context) (string, error)
- func (k *Kubernetes) PodsListInNamespace(ctx context.Context, namespace string) (string, error)
- func (k *Kubernetes) PodsLog(ctx context.Context, namespace, name string) (string, error)
- func (k *Kubernetes) PodsRun(ctx context.Context, namespace, name, image string, port int32) (string, error)
- func (k *Kubernetes) ResourcesCreateOrUpdate(ctx context.Context, resource string) (string, error)
- func (k *Kubernetes) ResourcesDelete(ctx context.Context, gvk *schema.GroupVersionKind, namespace, name string) error
- func (k *Kubernetes) ResourcesGet(ctx context.Context, gvk *schema.GroupVersionKind, namespace, name string) (string, error)
- func (k *Kubernetes) ResourcesList(ctx context.Context, gvk *schema.GroupVersionKind, namespace string) (string, error)
Constants ¶
View Source
const ( AppKubernetesComponent = "app.kubernetes.io/component" AppKubernetesManagedBy = "app.kubernetes.io/managed-by" AppKubernetesName = "app.kubernetes.io/name" AppKubernetesPartOf = "app.kubernetes.io/part-of" )
Variables ¶
This section is empty.
Functions ¶
func ConfigurationView ¶
Types ¶
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
func NewKubernetes ¶
func NewKubernetes() (*Kubernetes, error)
func (*Kubernetes) PodsDelete ¶ added in v0.0.12
func (*Kubernetes) PodsListInAllNamespaces ¶
func (k *Kubernetes) PodsListInAllNamespaces(ctx context.Context) (string, error)
func (*Kubernetes) PodsListInNamespace ¶
func (*Kubernetes) ResourcesCreateOrUpdate ¶ added in v0.0.10
func (*Kubernetes) ResourcesDelete ¶ added in v0.0.10
func (k *Kubernetes) ResourcesDelete(ctx context.Context, gvk *schema.GroupVersionKind, namespace, name string) error
func (*Kubernetes) ResourcesGet ¶ added in v0.0.10
func (k *Kubernetes) ResourcesGet(ctx context.Context, gvk *schema.GroupVersionKind, namespace, name string) (string, error)
func (*Kubernetes) ResourcesList ¶
func (k *Kubernetes) ResourcesList(ctx context.Context, gvk *schema.GroupVersionKind, namespace string) (string, error)
Click to show internal directories.
Click to hide internal directories.