Documentation ¶
Index ¶
Constants ¶
View Source
const ( RuntimeDocker = "docker" RuntimeContainerd = "containerd" )
View Source
const ( ContainerdContentDir = "/var/lib/containerd/io.containerd.content.v1.content" SecretMountPath = "/secret" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { CastaiClusterID string `envconfig:"CASTAI_CLUSTER_ID" required:"true"` CastaiAPIGrpcAddr string `envconfig:"CASTAI_API_GRPC_ADDR" required:"true"` // The api key is required, but we support two differnt ways of setting it. CastaiAPIKey string `envconfig:"CASTAI_API_KEY"` CastaiGRPCInsecure bool `envconfig:"CASTAI_GRPC_INSECURE"` BlobsCacheURL string `envconfig:"COLLECTOR_BLOBS_CACHE_URL"` ImageID string `envconfig:"COLLECTOR_IMAGE_ID" required:"true"` ImageName string `envconfig:"COLLECTOR_IMAGE_NAME" required:"true"` ImageArchitecture string `envconfig:"COLLECTOR_IMAGE_ARCHITECTURE" required:"true"` ImageOS string `envconfig:"COLLECTOR_IMAGE_OS" required:"true"` ImagePullSecret string `envconfig:"COLLECTOR_PULL_SECRET" default:""` Timeout time.Duration `envconfig:"COLLECTOR_TIMEOUT" default:"5m"` Mode Mode `envconfig:"COLLECTOR_MODE"` Runtime Runtime `envconfig:"COLLECTOR_RUNTIME" required:"true"` ResourceIDs string `envconfig:"COLLECTOR_RESOURCE_IDS" required:"true"` DockerOptionPath string `envconfig:"COLLECTOR_DOCKER_OPTION_PATH" default:""` PprofAddr string `envconfig:"COLLECTOR_PPROF_ADDR" default:""` Parallel int `envconfig:"COLLECTOR_PARALLEL" default:"1"` DisabledAnalyzers []string `envconfig:"COLLECTOR_DISABLED_ANALYZERS" default:""` // ImageLocalTarPath is used only with ModeTarArchive for local dev. ImageLocalTarPath string }
Click to show internal directories.
Click to hide internal directories.