Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrJobExecutionFailed = errors.ErrInternal.WithMsgf("job execution failed") ErrJobCreationFailed = errors.ErrInternal.WithMsgf("job creation failed") ErrJobNotFound = errors.ErrNotFound.WithMsgf("job not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { // Host - The hostname (in form of URI) of Kubernetes master. Host string `json:"host"` Timeout time.Duration `json:"timeout" default:"100ms"` // Token - Token to authenticate a service account Token string `json:"token"` // Insecure - Whether server should be accessed without verifying the TLS certificate. Insecure bool `json:"insecure" default:"false"` // ClientKey - PEM-encoded client key for TLS authentication. ClientKey string `json:"client_key"` // ClientCertificate - PEM-encoded client certificate for TLS authentication. ClientCertificate string `json:"client_certificate"` // ClusterCACertificate - PEM-encoded root certificates bundle for TLS authentication. ClusterCACertificate string `json:"cluster_ca_certificate"` }
func DefaultClientConfig ¶
func DefaultClientConfig() Config
func (Config) RESTConfig ¶
func (Config) StreamingConfig ¶
Click to show internal directories.
Click to hide internal directories.