scaleway

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 18 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 DeleteExpiredPrivateNetworks added in v0.27.1

func DeleteExpiredPrivateNetworks(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredVPCs added in v0.27.1

func DeleteExpiredVPCs(sessions ScalewaySessions, options ScalewayOptions)

func DeleteExpiredVolumes

func DeleteExpiredVolumes(sessions ScalewaySessions, options ScalewayOptions)

func DeleteOrphanIPAddresses added in v0.27.1

func DeleteOrphanIPAddresses(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 ScalewayIP added in v0.27.1

type ScalewayIP struct {
	ID      string
	Address 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
	EnableOrphanIP       bool
	EnableVPC            bool
	EnablePrivateNetwork bool
}

type ScalewayPrivateNetwork added in v0.27.1

type ScalewayPrivateNetwork struct {
	Name string
	common.CloudProviderResource
}

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
	Instance     *instance.API
	Bucket       *minio.Client
	SG           *instance.API
	Network      *vpc.API
}

type ScalewayVPC added in v0.27.1

type ScalewayVPC struct {
	Name string
	common.CloudProviderResource
}

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