Documentation
¶
Overview ¶
Package jobs provides implementation of Job resources for Kubernetes
Index ¶
- type JobOptions
- type Jobs
- func (obj *Jobs) Apply(yaml string, namespace string) (v1.Job, error)
- func (obj *Jobs) Create(options JobOptions) (v1.Job, error)
- func (obj *Jobs) Delete(name, namespace string) error
- func (obj *Jobs) Get(name, namespace string) (v1.Job, error)
- func (obj *Jobs) Kill(name, namespace string) error
- func (obj *Jobs) List(namespace string) ([]v1.Job, error)
- func (obj *Jobs) Wait(options WaitOptions) (bool, error)
- type WaitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobOptions ¶
type JobOptions struct { Namespace string Name string NodeName string Image string PullPolicy coreV1.PullPolicy Command []string RestartPolicy coreV1.RestartPolicy Wait string Autodelete bool }
JobOptions provide configuration settings for creation of Job resources
type Jobs ¶
type Jobs struct {
// contains filtered or unexported fields
}
Jobs provides API for manipulating Job resources within a Kubernetes cluster
func New ¶
func New(ctx context.Context, client kubernetes.Interface, metaOptions metav1.ListOptions) *Jobs
New creates a new instance backed by the provided client
func (*Jobs) Create ¶
func (obj *Jobs) Create(options JobOptions) (v1.Job, error)
Create creates the Kubernetes resource given the supplied object
type WaitOptions ¶
WaitOptions specify the options for waiting for a Job to complete
Click to show internal directories.
Click to hide internal directories.