Documentation ¶
Index ¶
- func ApplyReplica(workload *unstructured.Unstructured, desireReplica int64, field string) error
- func ConvertToClusterOverridePolicy(obj *unstructured.Unstructured) (*policyv1alpha1.ClusterOverridePolicy, error)
- func ConvertToClusterValidatePolicy(obj *unstructured.Unstructured) (*policyv1alpha1.ClusterValidatePolicy, error)
- func ConvertToDaemonSet(obj *unstructured.Unstructured) (*appsv1.DaemonSet, error)
- func ConvertToDeployment(obj *unstructured.Unstructured) (*appsv1.Deployment, error)
- func ConvertToEndpointSlice(obj *unstructured.Unstructured) (*discoveryv1.EndpointSlice, error)
- func ConvertToIngress(obj *unstructured.Unstructured) (*extensionsv1beta1.Ingress, error)
- func ConvertToJob(obj *unstructured.Unstructured) (*batchv1.Job, error)
- func ConvertToNode(obj *unstructured.Unstructured) (*corev1.Node, error)
- func ConvertToOverridePolicy(obj *unstructured.Unstructured) (*policyv1alpha1.OverridePolicy, error)
- func ConvertToPod(obj *unstructured.Unstructured) (*corev1.Pod, error)
- func ConvertToReplicaSet(obj *unstructured.Unstructured) (*appsv1.ReplicaSet, error)
- func ConvertToService(obj *unstructured.Unstructured) (*corev1.Service, error)
- func ConvertToStatefulSet(obj *unstructured.Unstructured) (*appsv1.StatefulSet, error)
- func Exists(items []admissionv1.Operation, pattern admissionv1.Operation) bool
- func ToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
- type ErrorSet
- type IOStreams
- type WaitGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyReplica ¶
func ApplyReplica(workload *unstructured.Unstructured, desireReplica int64, field string) error
ApplyReplica applies the Replica value for the specific field.
func ConvertToClusterOverridePolicy ¶
func ConvertToClusterOverridePolicy(obj *unstructured.Unstructured) (*policyv1alpha1.ClusterOverridePolicy, error)
ConvertToClusterOverridePolicy converts a ClusterOverridePolicy Object from unstructured to typed
func ConvertToClusterValidatePolicy ¶
func ConvertToClusterValidatePolicy(obj *unstructured.Unstructured) (*policyv1alpha1.ClusterValidatePolicy, error)
ConvertToClusterValidatePolicy converts a ClusterValidatePolicy Object from unstructured to typed
func ConvertToDaemonSet ¶
func ConvertToDaemonSet(obj *unstructured.Unstructured) (*appsv1.DaemonSet, error)
ConvertToDaemonSet converts a DaemonSet object from unstructured to typed.
func ConvertToDeployment ¶
func ConvertToDeployment(obj *unstructured.Unstructured) (*appsv1.Deployment, error)
ConvertToDeployment converts a Deployment object from unstructured to typed.
func ConvertToEndpointSlice ¶
func ConvertToEndpointSlice(obj *unstructured.Unstructured) (*discoveryv1.EndpointSlice, error)
ConvertToEndpointSlice converts a EndpointSlice object from unstructured to typed.
func ConvertToIngress ¶
func ConvertToIngress(obj *unstructured.Unstructured) (*extensionsv1beta1.Ingress, error)
ConvertToIngress converts a Service object from unstructured to typed.
func ConvertToJob ¶
func ConvertToJob(obj *unstructured.Unstructured) (*batchv1.Job, error)
ConvertToJob converts a Job object from unstructured to typed.
func ConvertToNode ¶
func ConvertToNode(obj *unstructured.Unstructured) (*corev1.Node, error)
ConvertToNode converts a Node object from unstructured to typed.
func ConvertToOverridePolicy ¶
func ConvertToOverridePolicy(obj *unstructured.Unstructured) (*policyv1alpha1.OverridePolicy, error)
ConvertToOverridePolicy converts a Override Object from unstructured to typed
func ConvertToPod ¶
func ConvertToPod(obj *unstructured.Unstructured) (*corev1.Pod, error)
ConvertToPod converts a Pod object from unstructured to typed.
func ConvertToReplicaSet ¶
func ConvertToReplicaSet(obj *unstructured.Unstructured) (*appsv1.ReplicaSet, error)
ConvertToReplicaSet converts a ReplicaSet object from unstructured to typed.
func ConvertToService ¶
func ConvertToService(obj *unstructured.Unstructured) (*corev1.Service, error)
ConvertToService converts a Service object from unstructured to typed.
func ConvertToStatefulSet ¶
func ConvertToStatefulSet(obj *unstructured.Unstructured) (*appsv1.StatefulSet, error)
ConvertToStatefulSet converts a StatefulSet object from unstructured to typed.
func Exists ¶
func Exists(items []admissionv1.Operation, pattern admissionv1.Operation) bool
func ToUnstructured ¶
func ToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
ToUnstructured converts a typed object to an unstructured object.
Types ¶
type ErrorSet ¶ added in v0.4.0
type ErrorSet []error
func NewErrorSet ¶ added in v0.4.0
func NewErrorSet() ErrorSet
type IOStreams ¶
type IOStreams struct { // In think, os.Stdin In io.Reader // Out think, os.Stdout Out io.Writer // ErrOut think, os.Stderr ErrOut io.Writer }
IOStreams provides the standard names for iostreams. This is useful for embedding and for unit testing. Inconsistent and different names make it hard to read and review code
func NewDefaultIOStreams ¶
func NewDefaultIOStreams() IOStreams
NewDefaultIOStreams return IOStreams with standard input/output/error
func NewTestIOStreams ¶
NewTestIOStreams return IOStreams with empty input and combined buffered output
type WaitGroup ¶ added in v0.4.0
type WaitGroup struct {
// contains filtered or unexported fields
}