storagepolicy

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package storagepolicy manages storage policy and enforce policy for 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(kv kvdb.Kvdb) (PolicyManager, error)

type SdkPolicyManager

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

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

func (*SdkPolicyManager) Create

Create Storage policy

func (*SdkPolicyManager) Delete

Delete storage policy specified by name

func (*SdkPolicyManager) Enforce

Enforce given storage policy

func (*SdkPolicyManager) EnforceInspect

EnforceInspect return enforced policy details

func (*SdkPolicyManager) Enumerate

Enumerate all of storage policies

func (*SdkPolicyManager) Inspect

Inspect storage policy specifed by name

func (*SdkPolicyManager) Release

Release storage policy if enforced

func (*SdkPolicyManager) Update

Update Storage policy

Jump to

Keyboard shortcuts

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