Versions in this module Expand all Collapse all v0 v0.0.1 Nov 8, 2023 Changes in this version + const Canceled + const Canceling + const Failed + const InProgress + const Pending + const Retrying + const StateParam + const Succeeded + const TargetAll + func ConvertSliceOfDaysToMap(days []string) map[time.Weekday]bool + func FirstAvailableDayDiff(currentDay time.Weekday, availableDays map[time.Weekday]bool) int + func NextAvailableDayDiff(currentDay time.Weekday, availableDays map[time.Weekday]bool) int + type Client interface + CancelOrchestration func(orchestrationID string) error + GetOperation func(orchestrationID, operationID string) (OperationDetailResponse, error) + GetOrchestration func(orchestrationID string) (StatusResponse, error) + ListOperations func(orchestrationID string, params ListParameters) (OperationResponseList, error) + ListOrchestrations func(params ListParameters) (StatusResponseList, error) + RetryOrchestration func(orchestrationID string, operationIDs []string, now bool) (RetryResponse, error) + UpgradeCluster func(params Parameters) (UpgradeResponse, error) + UpgradeKyma func(params Parameters) (UpgradeResponse, error) + func NewClient(ctx context.Context, url string, auth oauth2.TokenSource) Client + type GardenerRuntimeResolver struct + func NewGardenerRuntimeResolver(gardenerClient dynamic.Interface, gardenerNamespace string, ...) *GardenerRuntimeResolver + func (resolver *GardenerRuntimeResolver) Resolve(targets TargetSpec) ([]Runtime, error) + type KubernetesParameters struct + KubernetesVersion string + MachineImage string + MachineImageVersion string + type KymaParameters struct + Version string + type ListParameters struct + Page int + PageSize int + States []string + type MaintenancePolicy struct + Default MaintenancePolicyEntry + Rules []MaintenancePolicyRule + type MaintenancePolicyEntry struct + Days []string + TimeBegin string + TimeEnd string + type MaintenancePolicyMatch struct + GlobalAccountID string + Plan string + Region string + type MaintenancePolicyRule struct + Match MaintenancePolicyMatch + type NotificationStateType string + const NotificationCancelled + const NotificationCreated + const NotificationPending + type OperationDetailResponse struct + ClusterConfig *gqlschema.GardenerConfigInput + KymaConfig *gqlschema.KymaConfigInput + type OperationExecutor interface + Execute func(operationID string) (time.Duration, error) + Reschedule func(operationID string, maintenanceWindowBegin, maintenanceWindowEnd time.Time) error + type OperationResponse struct + Description string + DryRun bool + GlobalAccountID string + MaintenanceWindowBegin time.Time + MaintenanceWindowEnd time.Time + OperationID string + OrchestrationID string + RuntimeID string + ServicePlanID string + ServicePlanName string + ShootName string + State string + SubAccountID string + type OperationResponseList struct + Count int + Data []OperationResponse + TotalCount int + type ParallelStrategySpec struct + Workers int + type Parameters struct + DryRun bool + Kubernetes *KubernetesParameters + Kyma *KymaParameters + Notification bool + RetryOperation RetryOperationParameters + Strategy StrategySpec + Targets TargetSpec + type RetryOperationParameters struct + Immediate stringBoolean + RetryOperations []string + type RetryResponse struct + InvalidOperations []string + Msg string + OldOperations []string + OrchestrationID string + RetryShoots []string + type Runtime struct + GlobalAccountID string + InstanceID string + MaintenanceDays []string + MaintenanceWindowBegin time.Time + MaintenanceWindowEnd time.Time + Plan string + Region string + RuntimeID string + ShootName string + SubAccountID string + type RuntimeLister interface + ListAllRuntimes func() ([]runtime.RuntimeDTO, error) + type RuntimeListerMock struct + func NewRuntimeListerMock(t mockConstructorTestingTNewRuntimeListerMock) *RuntimeListerMock + func (_m *RuntimeListerMock) ListAllRuntimes() ([]runtime.RuntimeDTO, error) + type RuntimeOperation struct + DryRun bool + ID string + Notification bool + NotificationState NotificationStateType + type RuntimeResolver interface + Resolve func(targets TargetSpec) ([]Runtime, error) + type RuntimeTarget struct + GlobalAccount string + InstanceID string + PlanName string + Region string + RuntimeID string + Shoot string + SubAccount string + Target string + type ScheduleType string + const Immediate + const MaintenanceWindow + const Now + type StatusResponse struct + CreatedAt time.Time + Description string + OperationStats map[string]int + OrchestrationID string + Parameters Parameters + State string + Type Type + UpdatedAt time.Time + type StatusResponseList struct + Count int + Data []StatusResponse + TotalCount int + type Strategy interface + Cancel func(executionID string) + Execute func(operations []RuntimeOperation, strategySpec StrategySpec) (string, error) + Insert func(execID string, operations []RuntimeOperation, strategySpec StrategySpec) error + SpeedUp func(speedFactor int) + Wait func(executionID string) + type StrategySpec struct + MaintenanceWindow bool + Parallel ParallelStrategySpec + Schedule string + ScheduleTime time.Time + Type StrategyType + type StrategyType string + const ParallelStrategy + type TargetSpec struct + Exclude []RuntimeTarget + Include []RuntimeTarget + type Type string + const UpgradeClusterOrchestration + const UpgradeKymaOrchestration + type UpgradeResponse struct + OrchestrationID string