Documentation ¶
Index ¶
- func NewProvider(config map[string]string) (blockstorage.Provider, error)
- type Client
- type GpdStorage
- func (s *GpdStorage) FromRegion(ctx context.Context, region string) ([]string, error)
- func (s *GpdStorage) GetRegions(ctx context.Context) ([]string, error)
- func (s *GpdStorage) SetTags(ctx context.Context, resource interface{}, tags map[string]string) error
- func (s *GpdStorage) SnapshotCopy(ctx context.Context, from blockstorage.Snapshot, to blockstorage.Snapshot) (*blockstorage.Snapshot, error)
- func (s *GpdStorage) SnapshotCopyWithArgs(ctx context.Context, from blockstorage.Snapshot, to blockstorage.Snapshot, ...) (*blockstorage.Snapshot, error)
- func (s *GpdStorage) SnapshotCreate(ctx context.Context, volume blockstorage.Volume, tags map[string]string) (*blockstorage.Snapshot, error)
- func (s *GpdStorage) SnapshotCreateWaitForCompletion(ctx context.Context, snap *blockstorage.Snapshot) error
- func (s *GpdStorage) SnapshotDelete(ctx context.Context, snapshot *blockstorage.Snapshot) error
- func (s *GpdStorage) SnapshotGet(ctx context.Context, id string) (*blockstorage.Snapshot, error)
- func (s *GpdStorage) SnapshotsList(ctx context.Context, tags map[string]string) ([]*blockstorage.Snapshot, error)
- func (s *GpdStorage) Type() blockstorage.Type
- func (s *GpdStorage) VolumeCreate(ctx context.Context, volume blockstorage.Volume) (*blockstorage.Volume, error)
- func (s *GpdStorage) VolumeCreateFromSnapshot(ctx context.Context, snapshot blockstorage.Snapshot, tags map[string]string) (*blockstorage.Volume, error)
- func (s *GpdStorage) VolumeDelete(ctx context.Context, volume *blockstorage.Volume) error
- func (s *GpdStorage) VolumeGet(ctx context.Context, id string, zone string) (*blockstorage.Volume, error)
- func (s *GpdStorage) VolumesList(ctx context.Context, tags map[string]string, zone string) ([]*blockstorage.Volume, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(config map[string]string) (blockstorage.Provider, error)
NewProvider returns a provider for the GCP storage type
Types ¶
type GpdStorage ¶
type GpdStorage struct {
// contains filtered or unexported fields
}
GpdStorage implements blockstorage.Provider
func (*GpdStorage) FromRegion ¶
FromRegion is part of zone.Mapper
func (*GpdStorage) GetRegions ¶
func (s *GpdStorage) GetRegions(ctx context.Context) ([]string, error)
func (*GpdStorage) SetTags ¶
func (s *GpdStorage) SetTags(ctx context.Context, resource interface{}, tags map[string]string) error
SetTags is part of blockstorage.Provider
func (*GpdStorage) SnapshotCopy ¶
func (s *GpdStorage) SnapshotCopy(ctx context.Context, from blockstorage.Snapshot, to blockstorage.Snapshot) (*blockstorage.Snapshot, error)
SnapshotCopy is part of blockstorage.Provider
func (*GpdStorage) SnapshotCopyWithArgs ¶
func (s *GpdStorage) SnapshotCopyWithArgs(ctx context.Context, from blockstorage.Snapshot, to blockstorage.Snapshot, args map[string]string) (*blockstorage.Snapshot, error)
SnapshotCopyWithArgs is part of blockstorage.Provider
func (*GpdStorage) SnapshotCreate ¶
func (s *GpdStorage) SnapshotCreate(ctx context.Context, volume blockstorage.Volume, tags map[string]string) (*blockstorage.Snapshot, error)
SnapshotCreate is part of blockstorage.Provider
func (*GpdStorage) SnapshotCreateWaitForCompletion ¶
func (s *GpdStorage) SnapshotCreateWaitForCompletion(ctx context.Context, snap *blockstorage.Snapshot) error
SnapshotCreateWaitForCompletion is part of blockstorage.Provider
func (*GpdStorage) SnapshotDelete ¶
func (s *GpdStorage) SnapshotDelete(ctx context.Context, snapshot *blockstorage.Snapshot) error
SnapshotDelete is part of blockstorage.Provider
func (*GpdStorage) SnapshotGet ¶
func (s *GpdStorage) SnapshotGet(ctx context.Context, id string) (*blockstorage.Snapshot, error)
SnapshotGet is part of blockstorage.Provider
func (*GpdStorage) SnapshotsList ¶
func (s *GpdStorage) SnapshotsList(ctx context.Context, tags map[string]string) ([]*blockstorage.Snapshot, error)
SnapshotsList is part of blockstorage.Provider. It filters on tags.
func (*GpdStorage) Type ¶
func (s *GpdStorage) Type() blockstorage.Type
Type is part of blockstorage.Provider
func (*GpdStorage) VolumeCreate ¶
func (s *GpdStorage) VolumeCreate(ctx context.Context, volume blockstorage.Volume) (*blockstorage.Volume, error)
VolumeCreate is part of blockstorage.Provider
func (*GpdStorage) VolumeCreateFromSnapshot ¶
func (s *GpdStorage) VolumeCreateFromSnapshot(ctx context.Context, snapshot blockstorage.Snapshot, tags map[string]string) (*blockstorage.Volume, error)
VolumeCreateFromSnapshot is part of blockstorage.Provider
func (*GpdStorage) VolumeDelete ¶
func (s *GpdStorage) VolumeDelete(ctx context.Context, volume *blockstorage.Volume) error
VolumeDelete is part of blockstorage.Provider
func (*GpdStorage) VolumeGet ¶
func (s *GpdStorage) VolumeGet(ctx context.Context, id string, zone string) (*blockstorage.Volume, error)
VolumeGet is part of blockstorage.Provider
func (*GpdStorage) VolumesList ¶
func (s *GpdStorage) VolumesList(ctx context.Context, tags map[string]string, zone string) ([]*blockstorage.Volume, error)
VolumesList is part of blockstorage.Provider