Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceInstance ¶
func NewResourceInstance(apiVersionKind string) *unstructured.Unstructured
func NewResourceInstanceList ¶
func NewResourceInstanceList(apiVersionKind string) *unstructured.UnstructuredList
Types ¶
type Config ¶
type Config struct { EnableLeaderElection bool `env:"ENABLE_LEADER_ELECTION" envDefault:"false"` SyncPeriod time.Duration `env:"SYNC_PERIOD" envDefault:"30m"` MonitoringInterval time.Duration `env:"MONITORING_INTERVAL" envDefault:"5s"` ExpirationLabel string `env:"EXPIRATION_LABEL" envDefault:"mayfly.cloud.namecheap.com/expire"` Resources []string `env:"RESOURCES" envSeparator:"," envDefault:"v1;Secret,cloud.namecheap.com/v1alpha1;ScheduledResource"` }
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (*Scheduler) CreateOrUpdateTask ¶
func (*Scheduler) DeleteTask ¶
Click to show internal directories.
Click to hide internal directories.