scaleway

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMinIOSession

func CreateMinIOSession(scwSession *scw.Client) *minio.Client

func CreateSessionWithRegion

func CreateSessionWithRegion(region scw.Region) *scw.Client

func CreateSessionWithZone

func CreateSessionWithZone(zone scw.Zone) *scw.Client

func DeleteDetachedSecurityGroups

func DeleteDetachedSecurityGroups(sessions ScalewaySessions, options ScalewayOptions)

func DeleteEmptyContainerRegistries

func DeleteEmptyContainerRegistries(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredBuckets

func DeleteExpiredBuckets(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredClusters

func DeleteExpiredClusters(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredDatabases

func DeleteExpiredDatabases(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredLBs

func DeleteExpiredLBs(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredVolumes

func DeleteExpiredVolumes(sessions ScalewaySessions, options ScalewayOptions)

func GetRegionfromZone

func GetRegionfromZone(zone string) string

func RunPlecoScaleway

func RunPlecoScaleway(zones []string, interval int64, wg *sync.WaitGroup, options ScalewayOptions)

Types

type ScalewayCluster

type ScalewayCluster struct {
	common.CloudProviderResource
	Name string
}

func ListClusters

func ListClusters(clusterAPI *k8s.API, tagName string) ([]ScalewayCluster, string, error)

type ScalewayDB

type ScalewayDB struct {
	common.CloudProviderResource
	Name string
}

type ScalewayLB

type ScalewayLB struct {
	common.CloudProviderResource
	Name      string
	ClusterId string
	PublicIps []string
}

type ScalewayOptions

type ScalewayOptions struct {
	TagValue            string
	TagName             string
	DisableTTLCheck     bool
	IsDestroyingCommand bool
	DryRun              bool
	Zone                string // TODO: use scw.Zone
	Region              scw.Region
	EnableCluster       bool
	EnableDB            bool
	EnableCR            bool
	EnableBucket        bool
	EnableLB            bool
	EnableVolume        bool
	EnableSG            bool
}

type ScalewaySecurityGroup

type ScalewaySecurityGroup struct {
	ID          string
	Name        string
	UpdateDate  time.Time
	IsDefault   bool
	IsAttached  bool
	TTL         int64
	IsProtected bool
}

type ScalewaySessions

type ScalewaySessions struct {
	Cluster      *k8s.API
	Database     *rdb.API
	Namespace    *registry.API
	LoadBalancer *lb.ZonedAPI
	Volume       *instance.API
	Bucket       *minio.Client
	SG           *instance.API
}

type ScalewayVolume

type ScalewayVolume struct {
	ID        string
	Name      string
	UpdatedAt time.Time
	ServerId  string
}

Jump to

Keyboard shortcuts

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