client

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// OpenSDSEndPoint environment variable name
	OpenSDSEndPoint = "OPENSDS_ENDPOINT"

	// OpenSDSAuthStrategy environment variable name
	OpenSDSAuthStrategy = "OPENSDS_AUTH_STRATEGY"
)
View Source
const (
	KVolumeName       = "kubernetes.io/volumeName"
	KVolumeSize       = "kubernetes.io/size"
	KAvailabilityZone = "kubernetes.io/availabilityZone"
	KVolumeId         = "volumeId"
	KFsType           = "kubernetes.io/type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
}

func (*FakeClient) Delete

func (c *FakeClient) Delete(volumeId string) error

func (*FakeClient) Provision

func (c *FakeClient) Provision(opts map[string]string) (string, error)

type SdsClient

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

func (*SdsClient) Delete

func (c *SdsClient) Delete(volumeId string) error

func (*SdsClient) Provision

func (c *SdsClient) Provision(opts map[string]string) (string, error)

type WarpOpensdsClient

type WarpOpensdsClient interface {
	Provision(opts map[string]string) (string, error)
	Delete(volumeId string) error
}

func NewFakeClient

func NewFakeClient(endpoint string, authStrategy string) WarpOpensdsClient

func NewSdsClient

func NewSdsClient(endpoint string, authStrategy string) WarpOpensdsClient

Jump to

Keyboard shortcuts

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