Documentation
¶
Index ¶
- func ApplyWorkload(obj runtime.Object, w *v1.Workload) error
- func ConvertToWorkload(obj runtime.Object) (*v1.Workload, error)
- func NewObject(kindOrResource string, name, ns string) (runtime.Object, error)
- func NewObjectForGVK(gvk schema.GroupVersionKind, name, ns string) (runtime.Object, error)
- func NewWorkload(t metav1.TypeMeta, o metav1.ObjectMeta, tpl core.PodTemplateSpec) *v1.Workload
- type Client
- type Interface
- type WorkloadInterface
- type WorkloadTransformerFunc
- type WorkloadsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToWorkload ¶
func NewObjectForGVK ¶
func NewWorkload ¶
func NewWorkload(t metav1.TypeMeta, o metav1.ObjectMeta, tpl core.PodTemplateSpec) *v1.Workload
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to interact with features provided by the storage.k8s.io group.
func New ¶
func New(kc kubernetes.Interface, oc occ.Interface) *Client
New creates a new Client for the given RESTClient.
func NewForConfig ¶
NewForConfig creates a new Client for the given config.
func NewForConfigOrDie ¶
NewForConfigOrDie creates a new Client for the given config and panics if there is an error in the config.
func (*Client) Workloads ¶
func (c *Client) Workloads(namespace string) WorkloadInterface
type Interface ¶
type Interface interface { WorkloadsGetter }
type WorkloadInterface ¶
type WorkloadInterface interface { Create(context.Context, *v1.Workload, metav1.CreateOptions) (*v1.Workload, error) Update(context.Context, *v1.Workload, metav1.UpdateOptions) (*v1.Workload, error) Delete(ctx context.Context, obj runtime.Object, opts metav1.DeleteOptions) error Get(ctx context.Context, obj runtime.Object, opts metav1.GetOptions) (*v1.Workload, error) List(ctx context.Context, opts metav1.ListOptions) (*v1.WorkloadList, error) Patch(ctx context.Context, cur *v1.Workload, transform WorkloadTransformerFunc, opts metav1.PatchOptions) (*v1.Workload, kutil.VerbType, error) PatchObject(ctx context.Context, cur, mod *v1.Workload, opts metav1.PatchOptions) (*v1.Workload, kutil.VerbType, error) CreateOrPatch(ctx context.Context, obj runtime.Object, transform WorkloadTransformerFunc, opts metav1.PatchOptions) (*v1.Workload, kutil.VerbType, error) }
WorkloadInterface has methods to work with Workload resources.
type WorkloadsGetter ¶
type WorkloadsGetter interface {
Workloads(namespace string) WorkloadInterface
}
WorkloadsGetter has a method to return a WorkloadInterface. A group's client should implement this interface.
Click to show internal directories.
Click to hide internal directories.