entropy

package
v0.7.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceKindFirehose = "firehose"
	ResourceKindJob      = "job"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FirehoseChartValues added in v0.7.19

type FirehoseChartValues struct {
	ImageTag        string `json:"image_tag" validate:"required"`
	ChartVersion    string `json:"chart_version" validate:"required"`
	ImagePullPolicy string `json:"image_pull_policy" validate:"required"`
}

type FirehoseConfig added in v0.7.19

type FirehoseConfig struct {
	// Stopped flag when set forces the firehose to be stopped on next sync.
	Stopped bool `json:"stopped"`

	// StopTime can be set to schedule the firehose to be stopped at given time.
	StopTime *time.Time `json:"stop_time,omitempty"`

	// Replicas is the number of firehose instances to run.
	Replicas int `json:"replicas"`

	// Namespace is the target namespace where firehose should be deployed.
	// Inherits from driver config.
	Namespace string `json:"namespace,omitempty"`

	// DeploymentID will be used as the release-name for the deployment.
	// Must be shorter than 53 chars if set. If not set, one will be generated
	// automatically.
	DeploymentID string `json:"deployment_id,omitempty"`

	// EnvVariables contains all the firehose environment config values.
	EnvVariables map[string]string `json:"env_variables,omitempty"`

	// ResetOffset represents the value to which kafka consumer offset was set to
	ResetOffset string `json:"reset_offset,omitempty"`

	Limits        UsageSpec             `json:"limits,omitempty"`
	Requests      UsageSpec             `json:"requests,omitempty"`
	Telegraf      *FirehoseTelegraf     `json:"telegraf,omitempty"`
	ChartValues   *FirehoseChartValues  `json:"chart_values,omitempty"`
	InitContainer FirehoseInitContainer `json:"init_container,omitempty"`
}

type FirehoseInitContainer added in v0.7.19

type FirehoseInitContainer struct {
	Enabled bool `json:"enabled"`

	Args    []string `json:"args"`
	Command []string `json:"command"`

	Repository string `json:"repository"`
	ImageTag   string `json:"image_tag"`
	PullPolicy string `json:"pull_policy"`
}

type FirehoseResetParams added in v0.7.19

type FirehoseResetParams struct {
	To string `json:"to"`
}

type FirehoseScaleParams added in v0.7.19

type FirehoseScaleParams struct {
	Replicas int `json:"replicas"`
}

type FirehoseStartParams added in v0.7.19

type FirehoseStartParams struct {
	StopTime *time.Time `json:"stop_time"`
}

type FirehoseTelegraf added in v0.7.19

type FirehoseTelegraf struct {
	Enabled bool                 `json:"enabled,omitempty"`
	Image   map[string]any       `json:"image,omitempty"`
	Config  FirehoseTelegrafConf `json:"config,omitempty"`
}

type FirehoseTelegrafConf added in v0.7.19

type FirehoseTelegrafConf struct {
	Output               map[string]any    `json:"output"`
	AdditionalGlobalTags map[string]string `json:"additional_global_tags"`
}

type JobConfig added in v0.7.19

type JobConfig struct {
	Replicas   int32             `json:"replicas"`
	Namespace  string            `json:"namespace"`
	Name       string            `json:"name,omitempty"`
	Containers []JobContainer    `json:"containers,omitempty"`
	JobLabels  map[string]string `json:"job_labels,omitempty"`
	Volumes    []JobVolume       `json:"volumes,omitempty"`
	TTLSeconds *int32            `json:"ttl_seconds,omitempty"`
}

type JobConfigMap added in v0.7.19

type JobConfigMap struct {
	Name  string `json:"name"`
	Mount string `json:"mount"`
}

type JobContainer added in v0.7.19

type JobContainer struct {
	Name              string            `json:"name"`
	Image             string            `json:"image"`
	ImagePullPolicy   string            `json:"image_pull_policy,omitempty"`
	Command           []string          `json:"command,omitempty"`
	Args              []string          `json:"args,omitempty"`
	SecretsVolumes    []JobSecret       `json:"secrets_volumes,omitempty"`
	ConfigMapsVolumes []JobConfigMap    `json:"config_maps_volumes,omitempty"`
	Limits            UsageSpec         `json:"limits,omitempty"`
	Requests          UsageSpec         `json:"requests,omitempty"`
	EnvConfigMaps     []string          `json:"env_config_maps,omitempty"`
	EnvVariables      map[string]string `json:"env_variables,omitempty"`
	PreStopCmd        []string          `json:"pre_stop_cmd,omitempty"`
	PostStartCmd      []string          `json:"post_start_cmd,omitempty"`
}

type JobSecret added in v0.7.19

type JobSecret struct {
	Name  string `json:"name"`
	Mount string `json:"mount"`
}

type JobVolume added in v0.7.19

type JobVolume struct {
	Name string
	Kind string // secret or config-map. secret is for gcs/bq credential
}

type UsageSpec

type UsageSpec struct {
	CPU    string `json:"cpu,omitempty" validate:"required"`
	Memory string `json:"memory,omitempty" validate:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL