Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidReference if given reference is invalid. ErrInvalidReference = errors.New("reference is invalid") // ErrNotFound if given reference do not point to any resource. ErrNotFound = errors.New("resource not found") // ErrNotAddressable if found resource isn't addressable. ErrNotAddressable = errors.New("resource isn't addressable") // ErrMoreThenOneFound if more then one resource has been found. ErrMoreThenOneFound = errors.New("more then one resource has been found") // ErrUnexcpected if something unexpected actually has happened. ErrUnexcpected = errors.New("something unexpected actually has happened") )
Functions ¶
This section is empty.
Types ¶
type Clients ¶
type Clients interface { Typed() kubernetes.Interface Dynamic() dynamic.Interface Context() context.Context }
Clients holds available Kubernetes clients.
func CreateKubeClient ¶
func CreateKubeClient(props *event.Properties) (Clients, error)
CreateKubeClient creates kubernetes.Interface.
type JobRunner ¶
JobRunner will launch a Job and monitor it for completion.
func CreateJobRunner ¶
CreateJobRunner will create a JobRunner, or return an error.
type ReferenceAddressResolver ¶
type ReferenceAddressResolver interface {
ResolveAddress(ref *tracker.Reference, uri *apis.URL) (*url.URL, error)
}
ReferenceAddressResolver will resolve the tracker.Reference to an url.URL, or return an error.
func CreateAddressResolver ¶
func CreateAddressResolver(kube Clients) ReferenceAddressResolver
CreateAddressResolver will create ReferenceAddressResolver, or return an error.
Click to show internal directories.
Click to hide internal directories.