storagepolicy

package
v9.4.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package storagepolicy manages storage policy and apply/validate storage policy restriction volume operations. Copyright 2018 Portworx

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	Inst = func() (PolicyManager, error) {
		return policyInst()
	}
)

Functions

This section is empty.

Types

type PolicyManager

type PolicyManager interface {
	api.OpenStoragePolicyServer
}

PolicyManager provides an implementation if OpenStoragePolicy service methods.

func Init

func Init() (PolicyManager, error)

type SdkPolicyManager

type SdkPolicyManager struct {
}

SdkPolicyManager is an implementation of the Storage Policy Manager for the SDK

func (*SdkPolicyManager) Create

Create Storage policy

func (*SdkPolicyManager) DefaultInspect

DefaultInspect return default storeage policy details

func (*SdkPolicyManager) Delete

Delete storage policy specified by name

func (*SdkPolicyManager) Enumerate

Enumerate all of storage policies

func (*SdkPolicyManager) Inspect

Inspect storage policy specifed by name

func (*SdkPolicyManager) Release

Release storage policy if set as default

func (*SdkPolicyManager) SetDefault

SetDefault storage policy

func (*SdkPolicyManager) Update

Update Storage policy TODO: Decide whether update storage policy request should update ownership at all We can check if user is admin then only allow update ownership

Jump to

Keyboard shortcuts

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