interfaces

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenStackClient

type OpenStackClient interface {
	Client() (*gophercloud.ProviderClient, error)
}

type OpenStackComputeClient

type OpenStackComputeClient interface {
	CreateKeypair(keyNamePrefix string) (*keypairs.KeyPair, error)
	RemoveKeypair(keyName string) error
	CreateServer(keypairName string, flavor, networkID string, attachConfigDrive *bool, userData []byte, imageID string, securityGroups []string) (*servers.Server, error)
	GetServerStatus(sid string) (bool, error)
	AttachIP(serverID, fip string) error
	RemoveServer(serverID string) error
	GetFlavorIDByName(name string) (string, error)
}

type OpenStackImageClient

type OpenStackImageClient interface {
	ModifyImageMetadata(imgID string, key, value string, operation images.UpdateOp) (*images.Image, error)
	FetchAllImages(wildcard string) ([]images.Image, error)
	RemoveImage(imgID string) error
	FetchImage(imgID string) (*images.Image, error)
	TagImage(properties map[string]interface{}, imgID, value, tagName string) error
	ChangeImageVisibility(imgID string, visibility images.ImageVisibility) error
}

type OpenStackNetworkClient

type OpenStackNetworkClient interface {
	GetFloatingIP(networkName string) (*floatingips.FloatingIP, error)
	RemoveFIP(fipID string) error
}

type OpenStackScannerInterface

type OpenStackScannerInterface interface {
	RunScan(o *flags.ScanOptions) error
	FetchScanResults() error
	CheckResults() error
	TagImage() error
	UploadResultsToS3() error
}

type S3Interface

type S3Interface interface {
	List(string) ([]string, error)
	Fetch(string) ([]byte, error)
	Put(key string, body *os.File) error
}

type SSHInterface

type SSHInterface interface {
	CopyFromRemoteServer(src, dst string) (*os.File, error)
	SSHClose() error
	SFTPClose() error
}

type VaultInterface

type VaultInterface interface {
	Fetch(mountPath, secretPath, data string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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