gcepd

package
v0.113.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

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 Client

type Client struct {
	Service   *compute.Service
	ProjectID string
}

Client is a wrapper for Client client

func NewClient

func NewClient(ctx context.Context, servicekey string) (*Client, error)

NewClient returns a Client struct

type GpdStorage

type GpdStorage struct {
	// contains filtered or unexported fields
}

GpdStorage implements blockstorage.Provider

func (*GpdStorage) FromRegion

func (s *GpdStorage) FromRegion(ctx context.Context, region string) ([]string, error)

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

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

Jump to

Keyboard shortcuts

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