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(*v1.Workload) (*v1.Workload, error) Update(*v1.Workload) (*v1.Workload, error) Delete(obj runtime.Object, options *metav1.DeleteOptions) error Get(obj runtime.Object, options metav1.GetOptions) (*v1.Workload, error) List(opts metav1.ListOptions) (*v1.WorkloadList, error) Patch(cur *v1.Workload, transform WorkloadTransformerFunc) (*v1.Workload, kutil.VerbType, error) PatchObject(cur, mod *v1.Workload) (*v1.Workload, kutil.VerbType, error) CreateOrPatch(obj runtime.Object, transform WorkloadTransformerFunc) (*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.