Documentation
¶
Index ¶
- Constants
- Variables
- func DriverNotSupported(driver string) error
- func HandleCollectAWSMachineImagesTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectAllTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectAzureMachineImagesTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectBackupBucketsTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectCloudProfilesTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectGCPMachineImagesTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectMachinesTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectPersistentVolumesTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectProjectsTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectSeedsTask(ctx context.Context, t *asynq.Task) error
- func HandleCollectShootsTask(ctx context.Context, t *asynq.Task) error
- func HandleLinkAllTask(ctx context.Context, r *asynq.Task) error
- func LinkAWSImageWithCloudProfile(ctx context.Context, db *bun.DB) error
- func LinkAzureImageWithCloudProfile(ctx context.Context, db *bun.DB) error
- func LinkGCPImageWithCloudProfile(ctx context.Context, db *bun.DB) error
- func LinkMachineWithShoot(ctx context.Context, db *bun.DB) error
- func LinkShootWithProject(ctx context.Context, db *bun.DB) error
- func LinkShootWithSeed(ctx context.Context, db *bun.DB) error
- func NewCollectBackupBucketsTask() *asynq.Task
- func NewCollectCloudProfilesTask() *asynq.Task
- func NewCollectMachinesTask() *asynq.Task
- func NewCollectPersistentVolumesTask() *asynq.Task
- func NewCollectProjectsTask() *asynq.Task
- func NewCollectSeedsTask() *asynq.Task
- func NewCollectShootsTask() *asynq.Task
- type CollectCPMachineImagesPayload
- type CollectMachinesPayload
- type CollectPersistentVolumesPayload
Constants ¶
const ( // TaskCollectAll is a meta task, which enqueues all // relevant Gardener tasks. TaskCollectAll = "g:task:collect-all" // TaskLinkAll is the task type for linking all Gardener // related objects. TaskLinkAll = "g:task:link-all" )
const ( // TaskCollectAWSMachineImages is the name of the task for collecting // Machine Images for AWS Cloud Profile type. TaskCollectAWSMachineImages = "g:task:collect-aws-machine-images" )
const ( // TaskCollectAzureMachineImages is the name of the task for collecting // Machine Images for Azure Cloud Profile type. TaskCollectAzureMachineImages = "g:task:collect-azure-machine-images" )
const ( // TaskCollectBackupBuckets is the name of the task for collecting // Gardener BackupBuckets resources. TaskCollectBackupBuckets = "g:task:collect-backup-buckets" )
const ( // TaskCollectCloudProfiles is the name of the task for collecting // Gardener Cloud Profiles. TaskCollectCloudProfiles = "g:task:collect-cloud-profiles" )
const ( // TaskCollectGCPMachineImages is the name of the task for collecting // Machine Images for GCP Cloud Profile type. TaskCollectGCPMachineImages = "g:task:collect-gcp-machine-images" )
const ( // TaskCollectMachines is the name of the task for collecting Gardener // Machines. TaskCollectMachines = "g:task:collect-machines" )
const ( // TaskCollectPersistentVolumes is the name of the task for collecting Gardener // PVs. TaskCollectPersistentVolumes = "g:task:collect-persistent-volumes" )
const ( // TaskCollectProjects is the name of the task for collecting Gardener // Projects. TaskCollectProjects = "g:task:collect-projects" )
const ( // TaskCollectSeeds is the name of the task for collecting Gardener // Seeds. TaskCollectSeeds = "g:task:collect-seeds" )
const (
// TaskCollectShoots is the name of the task for collecting Shoots.
TaskCollectShoots = "g:task:collect-shoots"
)
Variables ¶
var ErrDriverNotSupported = errors.New("driver not supported")
ErrDriverNotSupported is an error, which is returned when the an unknown CSI driver is parsed.
var ErrNoCloudProfileName = errors.New("no cloud profile name specified")
ErrMissingCloudProfileName is returned when an expected cloud profile name is missing from the payload.
var ErrNoPayload = errors.New("no payload specified")
ErrNoPayload is an error, which is returned by task handlers, which expect payload, but none was provided.
var ErrNoProviderConfig = errors.New("no provider config specified")
ErrMissingProviderConfig is returned when an expected provider config is missing from the payload.
var ErrNoSeedCluster = errors.New("no seed cluster specified")
ErrNoSeedCluster is an error, which is returned when an expected Seed Cluster was not specified.
var ErrNoVirtualGardenClientFound = errors.New("no virtual garden client found")
ErrNoVirtualGardenClientFound is an error, which is returned when no Virtual Garden client was found.
Functions ¶
func DriverNotSupported ¶ added in v0.1.4
DriverNotSupported wraps ErrDriverNotSupported with the given driver name.
func HandleCollectAWSMachineImagesTask ¶
HandleCollectAWSMachineImagesTask is the handler for collecting Machine Images for AWS Cloud Profile type.
func HandleCollectAllTask ¶
HandleCollectAllTask is the handler, which enqueues tasks for collecting all known Gardener resources.
func HandleCollectAzureMachineImagesTask ¶ added in v0.1.1
HandleCollectAzureMachineImagesTask is the handler for collecting Machine Images for Azure Cloud Profile type.
func HandleCollectBackupBucketsTask ¶
HandleCollectBackupBucketsTask is the handler for collecting BackupBuckets.
func HandleCollectCloudProfilesTask ¶
HandleCollectCloudProfilesTask is the handler for collecting Gardener Cloud Profiles. This handler will also enqueue tasks for collecting and persisting the machine images for each supported Cloud Profile type.
func HandleCollectGCPMachineImagesTask ¶
HandleCollectGCPMachineImagesTask is the handler for collecting Machine Images for GCP Cloud Profile type.
func HandleCollectMachinesTask ¶
HandleCollectMachinesTask is the handler for collecting Gardener Machines.
func HandleCollectPersistentVolumesTask ¶ added in v0.1.4
HandleCollectPersistentVolumesTask is the handler for collecting Gardener PVs.
func HandleCollectProjectsTask ¶
HandleCollectProjectsTask is the handler that collects Gardener projects.
func HandleCollectSeedsTask ¶
HandleCollectSeedsTask is the handler for collecting Gardener Seeds.
func HandleCollectShootsTask ¶
HandleCollectShootsTask is a handler that collects Gardener Shoots.
func HandleLinkAllTask ¶
HandleLinkAllTask is the handler, which establishes relationships between the various Gardener models.
func LinkAWSImageWithCloudProfile ¶
LinkAWSImageWithCloudProfile creates the relationship between the CloudProfileAWSImage and CloudProfile
func LinkAzureImageWithCloudProfile ¶ added in v0.1.1
LinkAzureImageWithCloudProfile creates the relationship between the CloudProfileAzureImage and CloudProfile
func LinkGCPImageWithCloudProfile ¶
LinkGCPImageWithCloudProfile creates the relationship between the CloudProfileGCPImage and CloudProfile
func LinkMachineWithShoot ¶
LinkMachineWithShoot creates the relationship between the Machine and Shoot
func LinkShootWithProject ¶
LinkShootWithProject creates the relationship between the Gardener Shoot and Project.
func LinkShootWithSeed ¶
LinkShootWithSeed creates the relationship between the Shoot and Seed
func NewCollectBackupBucketsTask ¶
NewCollectBackupBucketsTask creates a new asynq.Task for collecting Gardener BackupBuckets, without specifying a payload.
func NewCollectCloudProfilesTask ¶
NewCollectCloudProfilesTask creates a new asynq.Task for collecting Gardener Cloud Profiles., without specifying a payload.
func NewCollectMachinesTask ¶
NewCollectMachinesTask creates a new asynq.Task for collecting Gardener Machines, without specifying a payload.
func NewCollectPersistentVolumesTask ¶ added in v0.1.4
NewCollectPersistentVolumesTask creates a new asynq.Task for collecting Gardener PVs, without specifying a payload.
func NewCollectProjectsTask ¶
NewCollectProjectsTask creates a new asynq.Task for collecting Gardener projects, without specifying a payload.
func NewCollectSeedsTask ¶
NewCollectSeedsTask creates a new asynq.Task for collecting Gardener Seeds, without specifying a payload.
func NewCollectShootsTask ¶
NewCollectShootsTask creates a new asynq.Task for collecting Gardener shoots, without specifying a payload.
Types ¶
type CollectCPMachineImagesPayload ¶
type CollectCPMachineImagesPayload struct {
// ProviderConfig is the raw config, which is specific for each Cloud
// Profile.
ProviderConfig []byte `json:"provider_config" yaml:"provider_config"`
// CloudProfileName is the name of the Cloud Profile.
CloudProfileName string `json:"cloud_profile_name" yaml:"cloud_profile_name"`
}
CollectCPMachineImagesPayload is the payload for collecting the Machine Images for a given Cloud Profile.
type CollectMachinesPayload ¶
type CollectMachinesPayload struct {
// Seed is the name of the seed cluster from which to collect Gardener
// Machines.
Seed string `json:"seed" yaml:"seed"`
}
CollectMachinesPayload is the payload, which is used for collecting Gardener Machines.
type CollectPersistentVolumesPayload ¶ added in v0.1.4
type CollectPersistentVolumesPayload struct {
// Seed is the name of the seed cluster from which to collect Gardener
// PVs.
Seed string `json:"seed" yaml:"seed"`
}
CollectPersistentVolumesPayload is the payload, which is used for collecting Gardener PVs.