package job
import "k8s.io/kubernetes/pkg/registry/job"
Package job provides Registry interface and it's RESTStorage implementation for storing Job api objects.
Index ¶
- Variables
- func JobToSelectableFields(job *extensions.Job) fields.Set
- func MatchJob(label labels.Selector, field fields.Selector) generic.Matcher
- type Registry
Variables ¶
var StatusStrategy = jobStatusStrategy{Strategy}
var Strategy = jobStrategy{api.Scheme, api.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Replication Controller objects.
Functions ¶
func JobToSelectableFields ¶
func JobToSelectableFields(job *extensions.Job) fields.Set
JobSelectableFields returns a field set that represents the object for matching purposes.
func MatchJob ¶
MatchJob is the filter used by the generic etcd backend to route watch events from etcd to clients of the apiserver only interested in specific labels/fields.
Types ¶
type Registry ¶
type Registry interface { // ListJobs obtains a list of Jobs having labels and fields which match selector. ListJobs(ctx api.Context, label labels.Selector, field fields.Selector) (*extensions.JobList, error) // WatchJobs watch for new/changed/deleted Jobs. WatchJobs(ctx api.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error) // GetJobs gets a specific Job. GetJob(ctx api.Context, name string) (*extensions.Job, error) // CreateJob creates a Job based on a specification. CreateJob(ctx api.Context, job *extensions.Job) (*extensions.Job, error) // UpdateJob updates an existing Job. UpdateJob(ctx api.Context, job *extensions.Job) (*extensions.Job, error) // DeleteJob deletes an existing Job. DeleteJob(ctx api.Context, name string) error }
Registry is an interface for things that know how to store Jobs.
func NewRegistry ¶
func NewRegistry(s rest.StandardStorage) Registry
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
Source Files ¶
doc.go registry.go strategy.go
Directories ¶
Path | Synopsis |
---|---|
pkg/registry/job/etcd |
- Version
- v1.1.6
- Published
- Jan 27, 2016
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 7 minutes ago –
Tools for package owners.