Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeAPI ¶ added in v0.47.0
type ComputeAPI struct {
// contains filtered or unexported fields
}
func (ComputeAPI) Delete ¶ added in v0.47.0
func (api ComputeAPI) Delete(instanceID string) error
func (ComputeAPI) GetComputeInstancePager ¶ added in v0.47.0
func (api ComputeAPI) GetComputeInstancePager() pagination.Pager
func (ComputeAPI) PageToServers ¶ added in v0.47.0
func (api ComputeAPI) PageToServers(page pagination.Page) ([]servers.Server, error)
func (ComputeAPI) PagerToPage ¶ added in v0.47.0
func (api ComputeAPI) PagerToPage(pager pagination.Pager) (pagination.Page, error)
type ComputeClient ¶ added in v0.47.0
type ComputeInstance ¶ added in v0.47.0
type ComputeInstance struct {
// contains filtered or unexported fields
}
func NewComputeInstance ¶ added in v0.47.0
func NewComputeInstance(name string, id string, client ComputeClient) ComputeInstance
func (ComputeInstance) Delete ¶ added in v0.47.0
func (ci ComputeInstance) Delete() error
func (ComputeInstance) Name ¶ added in v0.47.0
func (ci ComputeInstance) Name() string
func (ComputeInstance) Type ¶ added in v0.47.0
func (ComputeInstance) Type() string
type ComputeInstanceAPI ¶ added in v0.47.0
type ComputeInstanceAPI interface { GetComputeInstancePager() pagination.Pager PagerToPage(pagination.Pager) (pagination.Page, error) PageToServers(pagination.Page) ([]servers.Server, error) Delete(instanceID string) error }
type ComputeInstanceClient ¶ added in v0.47.0
type ComputeInstanceClient struct {
// contains filtered or unexported fields
}
func NewComputeInstanceClient ¶ added in v0.47.0
func NewComputeInstanceClient(api ComputeInstanceAPI) ComputeInstanceClient
func (ComputeInstanceClient) Delete ¶ added in v0.47.0
func (client ComputeInstanceClient) Delete(instanceID string) error
type ComputeInstances ¶ added in v0.47.0
type ComputeInstances struct {
// contains filtered or unexported fields
}
func NewComputeInstances ¶ added in v0.47.0
func NewComputeInstances(computeClient ComputeClient, logger logger) ComputeInstances
func (ComputeInstances) List ¶ added in v0.47.0
func (ci ComputeInstances) List(filter string) ([]common.Deletable, error)
func (ComputeInstances) Type ¶ added in v0.47.0
func (ci ComputeInstances) Type() string
type Image ¶ added in v0.47.0
type Image struct {
// contains filtered or unexported fields
}
type ImageAPI ¶ added in v0.47.0
type ImageAPI struct {
// contains filtered or unexported fields
}
func (ImageAPI) GetImagesPager ¶ added in v0.47.0
func (api ImageAPI) GetImagesPager() pagination.Pager
func (ImageAPI) PageToImages ¶ added in v0.47.0
func (ImageAPI) PagerToPage ¶ added in v0.47.0
func (api ImageAPI) PagerToPage(pager pagination.Pager) (pagination.Page, error)
type Images ¶ added in v0.47.0
type Images struct {
// contains filtered or unexported fields
}
type ImagesClient ¶ added in v0.47.0
type ImagesClient struct {
// contains filtered or unexported fields
}
func NewImagesClient ¶ added in v0.47.0
func NewImagesClient(imageAPI imageAPI) ImagesClient
func (ImagesClient) Delete ¶ added in v0.47.0
func (ic ImagesClient) Delete(imageID string) error
type Leftovers ¶
type Leftovers struct {
// contains filtered or unexported fields
}
func NewLeftovers ¶
func NewLeftovers(logger logger, authURL, username, password, domain, tenantName, region string) (Leftovers, error)
NewLeftovers returns a new Leftovers for OpenStack that can be used to list resources, list types, or delete resources for the provided account. It returns an error if the credentials provided are invalid or if a client fails to be created.
func (Leftovers) Delete ¶
Delete will collect all resources that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete thoseu that are selected.
func (Leftovers) DeleteByType ¶ added in v0.55.0
DeleteByType will collect all resources of the provied type that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.
func (Leftovers) ListByType ¶ added in v0.55.0
ListByType defaults to List.
type Volume ¶ added in v0.47.0
type Volume struct {
// contains filtered or unexported fields
}
type Volumes ¶ added in v0.47.0
type Volumes struct {
// contains filtered or unexported fields
}
func NewVolumes ¶ added in v0.47.0
func NewVolumes(client volumesClient, logger logger) Volumes
type VolumesAPI ¶ added in v0.47.0
type VolumesAPI struct {
// contains filtered or unexported fields
}
func (VolumesAPI) DeleteVolume ¶ added in v0.47.0
func (api VolumesAPI) DeleteVolume(id string) error
func (VolumesAPI) GetVolumesPager ¶ added in v0.47.0
func (api VolumesAPI) GetVolumesPager() pagination.Pager
func (VolumesAPI) PageToVolumes ¶ added in v0.47.0
func (api VolumesAPI) PageToVolumes(page pagination.Page) ([]volumes.Volume, error)
func (VolumesAPI) PagerToPage ¶ added in v0.47.0
func (api VolumesAPI) PagerToPage(pager pagination.Pager) (pagination.Page, error)
type VolumesBlockStorageClient ¶ added in v0.47.0
type VolumesBlockStorageClient struct {
// contains filtered or unexported fields
}
func NewVolumesBlockStorageClient ¶ added in v0.47.0
func NewVolumesBlockStorageClient(api volumesAPI) VolumesBlockStorageClient
func (VolumesBlockStorageClient) Delete ¶ added in v0.47.0
func (v VolumesBlockStorageClient) Delete(volumeID string) error