Documentation
¶
Index ¶
- Constants
- type ClusterInfo
- type Diff
- type DiffType
- type KubernetesClient
- func (client *KubernetesClient) Apply(documents []string, applySetParentName string, applySetParentNamespace string, ...) error
- func (client *KubernetesClient) Delete(applySetParentName string, applySetParentNamespace string, ...) error
- func (client *KubernetesClient) GetClusterInfo() (*ClusterInfo, error)
- func (client *KubernetesClient) List(applySetParentNamespace string) error
- func (client *KubernetesClient) Wait(objects object.ObjMetadataSet, status status.Status, timeout time.Duration) error
- func (client *KubernetesClient) WaitDocuments(documents []string, sts status.Status, timeout time.Duration) error
- type NoChangesError
Constants ¶
View Source
const (
ManagedByLabel = "app.kubernetes.io/managed-by"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
Version string
Distribution core.KubernetesDistribution
}
type KubernetesClient ¶
type KubernetesClient struct {
Factory cmdutil.Factory
Mapper meta.RESTMapper
CoreClient kubernetes.Interface
DynamicClient dynamic.Interface
}
func NewKubernetesClient ¶
func NewKubernetesClient() (*KubernetesClient, error)
func (*KubernetesClient) Delete ¶
func (client *KubernetesClient) Delete( applySetParentName string, applySetParentNamespace string, skipConfirmation bool, ) error
func (*KubernetesClient) GetClusterInfo ¶
func (client *KubernetesClient) GetClusterInfo() (*ClusterInfo, error)
func (*KubernetesClient) List ¶
func (client *KubernetesClient) List(applySetParentNamespace string) error
func (*KubernetesClient) Wait ¶
func (client *KubernetesClient) Wait(objects object.ObjMetadataSet, status status.Status, timeout time.Duration) error
func (*KubernetesClient) WaitDocuments ¶
type NoChangesError ¶
type NoChangesError struct{}
func (NoChangesError) Error ¶
func (e NoChangesError) Error() string
Click to show internal directories.
Click to hide internal directories.