Documentation ¶
Index ¶
- func ApplyFilter(ops []*filev1beta1.Operation, uri string, opType string, done bool) ([]*filev1beta1.Operation, error)
- func CompareInstances(a, b *ServiceInstance) error
- func CompareMultishareInstances(a, b *MultishareInstance) error
- func CompareShares(a, b *Share) error
- func CreateBackpURI(obj *ServiceInstance, backupName, backupLocation string) (string, string, error)
- func GenerateMultishareInstanceURI(m *MultishareInstance) (string, error)
- func GenerateShareURI(s *Share) (string, error)
- func GetMultishareInstanceHandle(m *MultishareInstance) (string, error)
- func IsInstanceTarget(target string) bool
- func IsNotFoundErr(err error) bool
- func IsShareTarget(target string) bool
- func IsTooManyRequestError(err error) bool
- func IsUserError(err error) bool
- func ParseShare(s *Share) (string, string, string, string, error)
- type BackupInfo
- type ListFilter
- type MultishareInstance
- type Network
- type PollOpts
- type Service
- func NewFakeBlockingService(operationUnblocker chan chan struct{}) (Service, error)
- func NewFakeBlockingServiceForMultishare(unblocker chan chan Signal) (Service, error)
- func NewFakeService() (Service, error)
- func NewFakeServiceForMultishare(instances []*MultishareInstance, shares []*Share, ...) (Service, error)
- func NewGCFSService(version string, client *http.Client, endpoint string) (Service, error)
- type ServiceInstance
- type Share
- type Signal
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFilter ¶ added in v0.6.1
func ApplyFilter(ops []*filev1beta1.Operation, uri string, opType string, done bool) ([]*filev1beta1.Operation, error)
func CompareInstances ¶
func CompareInstances(a, b *ServiceInstance) error
func CompareMultishareInstances ¶ added in v1.2.0
func CompareMultishareInstances(a, b *MultishareInstance) error
func CompareShares ¶ added in v1.2.0
func CreateBackpURI ¶ added in v0.3.1
func CreateBackpURI(obj *ServiceInstance, backupName, backupLocation string) (string, string, error)
This function returns the backup URI, the region that was picked to be the backup resource location and error.
func GenerateMultishareInstanceURI ¶ added in v1.2.0
func GenerateMultishareInstanceURI(m *MultishareInstance) (string, error)
func GenerateShareURI ¶ added in v1.2.0
func GetMultishareInstanceHandle ¶ added in v1.2.0
func GetMultishareInstanceHandle(m *MultishareInstance) (string, error)
func IsInstanceTarget ¶ added in v1.2.0
func IsNotFoundErr ¶ added in v0.2.0
func IsShareTarget ¶ added in v1.2.0
func IsTooManyRequestError ¶ added in v1.2.0
IsTooManyRequestError returns true if the error is a googleapi.Error with Error 429: Status Too Many Requests.
func IsUserError ¶ added in v1.1.2
IsUserError returns true if the error is a googleapi.Error with Error 403: Permission Denied, Error 400: Bad Request
Types ¶
type BackupInfo ¶ added in v0.3.1
type BackupInfo struct { Backup *filev1beta1.Backup SourceVolumeHandle string }
type ListFilter ¶ added in v1.2.0
type MultishareInstance ¶ added in v1.2.0
type MultishareInstance struct {}
func (*MultishareInstance) String ¶ added in v1.2.0
func (i *MultishareInstance) String() string
type Service ¶
type Service interface { CreateInstance(ctx context.Context, obj *ServiceInstance) (*ServiceInstance, error) DeleteInstance(ctx context.Context, obj *ServiceInstance) error GetInstance(ctx context.Context, obj *ServiceInstance) (*ServiceInstance, error) ListInstances(ctx context.Context, obj *ServiceInstance) ([]*ServiceInstance, error) ResizeInstance(ctx context.Context, obj *ServiceInstance) (*ServiceInstance, error) GetBackup(ctx context.Context, backupUri string) (*BackupInfo, error) CreateBackup(ctx context.Context, obj *ServiceInstance, backupId, backupLocation string) (*filev1beta1.Backup, error) DeleteBackup(ctx context.Context, backupId string) error CreateInstanceFromBackupSource(ctx context.Context, obj *ServiceInstance, volumeSourceSnapshotId string) (*ServiceInstance, error) HasOperations(ctx context.Context, obj *ServiceInstance, operationType string, done bool) (bool, error) // Multishare ops WaitForOpWithOpts(ctx context.Context, op string, opts PollOpts) error GetOp(ctx context.Context, op string) (*filev1beta1multishare.Operation, error) IsOpDone(op *filev1beta1multishare.Operation) (bool, error) ListOps(ctx context.Context, resource *ListFilter) ([]*filev1beta1multishare.Operation, error) }
func NewFakeBlockingService ¶ added in v0.5.0
func NewFakeBlockingServiceForMultishare ¶ added in v1.2.0
func NewFakeService ¶
func NewFakeServiceForMultishare ¶ added in v1.2.0
func NewFakeServiceForMultishare(instances []*MultishareInstance, shares []*Share, ops []*filev1beta1multishare.Operation) (Service, error)
type ServiceInstance ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.