Documentation
¶
Index ¶
- Variables
- type Client
- func (c Client) GetCRDDetails(ctx context.Context, namespace string, name string) (*unstructured.Unstructured, error)
- func (c Client) GetDeploymentDetails(ctx context.Context, namespace string, name string) (Deployment, error)
- func (c Client) GetJobProcessor(j *job.Job) (*job.Processor, error)
- func (c Client) GetPodDetails(ctx context.Context, namespace string, labelSelectors map[string]string, ...) ([]Pod, error)
- func (c Client) RunJob(ctx context.Context, namespace, name string, image string, cmd []string, ...) (*batchv1.Job, error)
- func (c Client) StreamLogs(ctx context.Context, namespace string, filter map[string]string) (<-chan LogChunk, error)
- type Config
- type Deployment
- type FlinkDeploymentStatus
- type HelmConfig
- type LogChunk
- type LogOptions
- type Pod
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
}
func (Client) GetCRDDetails ¶ added in v0.2.22
func (c Client) GetCRDDetails(ctx context.Context, namespace string, name string) (*unstructured.Unstructured, error)
func (Client) GetDeploymentDetails ¶ added in v0.2.35
func (Client) GetJobProcessor ¶ added in v0.1.7
func (Client) GetPodDetails ¶
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 with static oauth2 access token
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"`
// ProviderType indicates which provider that hos k8s: gke, eks, etc...
// If it is `gke`, entropy will fetch auth from the default source
// left it empty if token or client key will be used
ProviderType string `json:"provider_type"`
// Namespace defines where the resources that depend on this kube resource deployed to
// namespace is optional, if it is being defined, it will force all resources that depend
// on this kube resource to be deployed to the defined namespace
Namespace string `json:"namespace"`
HelmConfig HelmConfig `json:"helm_config"`
// Maximum burst for throttle.
Burst int `json:"burst" default:"10"`
// QPS indicates the maximum QPS to the master from this client.
QPS float32 `json:"qps" default:"5"`
}
func DefaultClientConfig ¶
func DefaultClientConfig() Config
func (*Config) RESTConfig ¶
type Deployment ¶ added in v0.2.35
type FlinkDeploymentStatus ¶ added in v0.2.22
type HelmConfig ¶ added in v0.2.30
type HelmConfig struct {
MaxHistory int `json:"max_history" default:"256"`
}
type LogOptions ¶
type LogOptions struct {
App string `mapstructure:"app"`
Pod string `mapstructure:"pod"`
Container string `mapstructure:"container"`
Follow string `mapstructure:"follow"`
Previous string `mapstructure:"previous"`
SinceSeconds string `mapstructure:"since_seconds"`
Timestamps string `mapstructure:"timestamps"`
TailLines string `mapstructure:"tail_lines"`
}
Click to show internal directories.
Click to hide internal directories.