Documentation ¶
Index ¶
- func ConfigureKubeConfigFlags(hf common.HasFlags)
- func GroupVersionKindToTypeMeta(kind schema.GroupVersionKind) metav1.TypeMeta
- func HasServerDryRunSupport(gvk schema.GroupVersionKind, client dynamic.Interface, runtime Runtime) (bool, error)
- func IsReady(object runtime.Object) *bool
- func NewKubeClientConfig() (clientcmd.ClientConfig, string, error)
- func OptimizeError(input error) error
- func Pbool(v bool) *bool
- func Pint32(v int32) *int32
- func TryCastToInt32(value interface{}) *int32
- type Aggregation
- type AnonymousAggregation
- type Apply
- type ApplyObject
- type ApplySet
- type DaemonSetAggregation
- type DeploymentAggregation
- type DryRunOn
- type ObjectInfo
- type ObjectResource
- func (instance ObjectResource) Create(options *metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
- func (instance ObjectResource) Delete(options *metav1.DeleteOptions, subresources ...string) error
- func (instance ObjectResource) Get(options *metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
- func (instance ObjectResource) Update(options *metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
- func (instance ObjectResource) Watch(options *metav1.ListOptions) (watch.Interface, error)
- type PodAggregation
- type Runtime
- type StatefulSetAggregation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupVersionKindToTypeMeta ¶
func GroupVersionKindToTypeMeta(kind schema.GroupVersionKind) metav1.TypeMeta
func HasServerDryRunSupport ¶
func NewKubeClientConfig ¶
func NewKubeClientConfig() (clientcmd.ClientConfig, string, error)
func OptimizeError ¶
func TryCastToInt32 ¶
func TryCastToInt32(value interface{}) *int32
Types ¶
type Aggregation ¶
type Aggregation interface { Desired() *int32 Ready() *int32 UpToDate() *int32 Available() *int32 IsReady() *bool }
func NewAggregationFor ¶
func NewAggregationFor(object *unstructured.Unstructured) Aggregation
type AnonymousAggregation ¶
type AnonymousAggregation struct {
*unstructured.Unstructured
}
func (AnonymousAggregation) Available ¶
func (instance AnonymousAggregation) Available() *int32
func (AnonymousAggregation) Desired ¶
func (instance AnonymousAggregation) Desired() *int32
func (AnonymousAggregation) IsReady ¶
func (instance AnonymousAggregation) IsReady() *bool
func (AnonymousAggregation) Ready ¶
func (instance AnonymousAggregation) Ready() *int32
func (AnonymousAggregation) UpToDate ¶
func (instance AnonymousAggregation) UpToDate() *int32
type ApplyObject ¶
type ApplyObject struct { KeepAliveInterval time.Duration // contains filtered or unexported fields }
func NewApplyObject ¶
func NewApplyObject(source string, object *unstructured.Unstructured, client dynamic.Interface, runtime Runtime) (*ApplyObject, error)
func (*ApplyObject) Execute ¶
func (instance *ApplyObject) Execute(dry DryRunOn) (err error)
func (*ApplyObject) Rollback ¶
func (instance *ApplyObject) Rollback()
func (ApplyObject) String ¶
func (instance ApplyObject) String() string
type DaemonSetAggregation ¶
type DaemonSetAggregation struct {
AnonymousAggregation
}
func (DaemonSetAggregation) Available ¶
func (instance DaemonSetAggregation) Available() *int32
func (DaemonSetAggregation) Desired ¶
func (instance DaemonSetAggregation) Desired() *int32
func (DaemonSetAggregation) IsReady ¶
func (instance DaemonSetAggregation) IsReady() *bool
func (DaemonSetAggregation) Ready ¶
func (instance DaemonSetAggregation) Ready() *int32
func (DaemonSetAggregation) UpToDate ¶
func (instance DaemonSetAggregation) UpToDate() *int32
type DeploymentAggregation ¶
type DeploymentAggregation struct {
AnonymousAggregation
}
func (DeploymentAggregation) Available ¶
func (instance DeploymentAggregation) Available() *int32
func (DeploymentAggregation) Desired ¶
func (instance DeploymentAggregation) Desired() *int32
func (DeploymentAggregation) IsReady ¶
func (instance DeploymentAggregation) IsReady() *bool
func (DeploymentAggregation) Ready ¶
func (instance DeploymentAggregation) Ready() *int32
func (DeploymentAggregation) UpToDate ¶
func (instance DeploymentAggregation) UpToDate() *int32
type ObjectInfo ¶
type ObjectInfo struct { Kind schema.GroupVersionKind Name string Namespace string TypeMeta metav1.TypeMeta GroupVersionResource schema.GroupVersionResource }
func GetObjectInfo ¶
func GetObjectInfo(object runtime.Object) (ObjectInfo, error)
func (ObjectInfo) String ¶
func (instance ObjectInfo) String() string
type ObjectResource ¶
type ObjectResource struct { ObjectInfo Client dynamic.Interface Resource dynamic.ResourceInterface Object *unstructured.Unstructured }
func GetObjectResource ¶
func GetObjectResource(object *unstructured.Unstructured, client dynamic.Interface) (ObjectResource, error)
func (ObjectResource) Create ¶
func (instance ObjectResource) Create(options *metav1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (ObjectResource) Delete ¶
func (instance ObjectResource) Delete(options *metav1.DeleteOptions, subresources ...string) error
func (ObjectResource) Get ¶
func (instance ObjectResource) Get(options *metav1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)
func (ObjectResource) Update ¶
func (instance ObjectResource) Update(options *metav1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)
func (ObjectResource) Watch ¶
func (instance ObjectResource) Watch(options *metav1.ListOptions) (watch.Interface, error)
type PodAggregation ¶
type PodAggregation struct {
AnonymousAggregation
}
func (PodAggregation) Available ¶
func (instance PodAggregation) Available() *int32
func (PodAggregation) Desired ¶
func (instance PodAggregation) Desired() *int32
func (PodAggregation) IsReady ¶
func (instance PodAggregation) IsReady() *bool
func (PodAggregation) Ready ¶
func (instance PodAggregation) Ready() *int32
func (PodAggregation) UpToDate ¶
func (instance PodAggregation) UpToDate() *int32
type Runtime ¶
type Runtime interface { ContextName() string NewDynamicClient() (dynamic.Interface, error) discovery.OpenAPISchemaInterface }
func NewRuntime ¶
type StatefulSetAggregation ¶
type StatefulSetAggregation struct {
AnonymousAggregation
}
func (StatefulSetAggregation) Available ¶
func (instance StatefulSetAggregation) Available() *int32
func (StatefulSetAggregation) Desired ¶
func (instance StatefulSetAggregation) Desired() *int32
func (StatefulSetAggregation) IsReady ¶
func (instance StatefulSetAggregation) IsReady() *bool
func (StatefulSetAggregation) Ready ¶
func (instance StatefulSetAggregation) Ready() *int32
func (StatefulSetAggregation) UpToDate ¶
func (instance StatefulSetAggregation) UpToDate() *int32
Source Files ¶
Click to show internal directories.
Click to hide internal directories.