gcp

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// The service tier of the fileStore instance in GCP.
	// Supported service tiers at GCP are:
	//   "TIER_UNSPECIFIED" - Not set.
	//   "STANDARD" - STANDARD tier.
	//   "PREMIUM" - PREMIUM tier.
	Tier = "Tier"

	// The default Network name for Google Compute Engine.
	DefaultNetwork = "default"

	// The IPv4 internet protocol mode for GCP.
	InternetProtocolModeIpv4 = "MODE_IPV4"

	// The Unique name of the instance resource in GCP.
	InstanceResourceName = "InstanceResourceName"

	// The time that the file system was created in GCP.
	CreationTimeAtBackend = "CreationTimeAtBackend"

	// Server-specified ETag in GCP.
	Etag = "Etag"

	// Networks: VPC networks to which the instance is connected, in GCP.
	Networks = "Networks"

	// FileStore Instance State, in GCP.
	State = "State"

	// FileStore Instance Status about its State, in GCP.
	StatusMessage = "StatusMessage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GcpAdapter

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

func (GcpAdapter) Close

func (g GcpAdapter) Close() error

func (GcpAdapter) CreateFileShare

func (GcpAdapter) DeleteFileShare

func (GcpAdapter) GetFileShare

func (*GcpAdapter) GetInstance

func (g *GcpAdapter) GetInstance(ctx context.Context, fs *file.FileShare) (*gcpfilev1.Instance, error)

func (GcpAdapter) ListFileShare

func (*GcpAdapter) ParseFileShare

func (g *GcpAdapter) ParseFileShare(instance *gcpfilev1.Instance) (*file.FileShare, error)

func (GcpAdapter) UpdatefileShare

type GcpFSDriverFactory

type GcpFSDriverFactory struct {
}

func (*GcpFSDriverFactory) CreateFileStorageDriver

func (factory *GcpFSDriverFactory) CreateFileStorageDriver(backend *backendpb.BackendDetail) (driver.FileStorageDriver, error)

Jump to

Keyboard shortcuts

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