do

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMinIOSession

func CreateMinIOSession(region string) *minio.Client

func CreateSession

func CreateSession() *godo.Client

func DeleteExpiredBuckets

func DeleteExpiredBuckets(sessions DOSessions, options DOOptions)

func DeleteExpiredClusters

func DeleteExpiredClusters(sessions DOSessions, options DOOptions)

func DeleteExpiredDatabases

func DeleteExpiredDatabases(sessions DOSessions, options DOOptions)

func DeleteExpiredFirewalls

func DeleteExpiredFirewalls(sessions DOSessions, options DOOptions)

func DeleteExpiredLBs

func DeleteExpiredLBs(sessions DOSessions, options DOOptions)

func DeleteExpiredVPCs

func DeleteExpiredVPCs(sessions DOSessions, options DOOptions)

func DeleteExpiredVolumes

func DeleteExpiredVolumes(sessions DOSessions, options DOOptions)

func RunPlecoDO

func RunPlecoDO(regions []string, interval int64, wg *sync.WaitGroup, options DOOptions)

Types

type DOCluster

type DOCluster struct {
	common.CloudProviderResource
	Name string
}

type DODB

type DODB struct {
	common.CloudProviderResource
	Name string
}

type DOFirewall

type DOFirewall struct {
	ID           string
	Name         string
	CreationDate time.Time
	Droplets     []int
}

type DOLB

type DOLB struct {
	common.CloudProviderResource
	Name     string
	Droplets []int
	PublicIp string
}

type DOOptions

type DOOptions struct {
	TagName             string
	TagValue            string
	DisableTTLCheck     bool
	IsDestroyingCommand bool
	DryRun              bool
	Region              string
	EnableCluster       bool
	EnableDB            bool
	EnableBucket        bool
	EnableLB            bool
	EnableVolume        bool
	EnableFirewall      bool
	EnableVPC           bool
}

type DOSessions

type DOSessions struct {
	Client *godo.Client
	Bucket *minio.Client
}

type DOVolume

type DOVolume struct {
	ID           string
	Name         string
	CreationDate time.Time
}

type DOVpc

type DOVpc struct {
	ID           string
	Name         string
	CreationDate time.Time
	Members      []*godo.VPCMember
}

Jump to

Keyboard shortcuts

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