v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/api/storage/v1/generated.proto

It has these top-level messages:

StorageClass
StorageClassList

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type StorageClass

type StorageClass struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Provisioner indicates the type of the provisioner.
	Provisioner *string `protobuf:"bytes,2,opt,name=provisioner" json:"provisioner,omitempty"`
	// Parameters holds the parameters for the provisioner that should
	// create volumes of this storage class.
	// +optional
	Parameters map[string]string `` /* 140-byte string literal not displayed */
	// Dynamically provisioned PersistentVolumes of this storage class are
	// created with this reclaimPolicy. Defaults to Delete.
	// +optional
	ReclaimPolicy *string `protobuf:"bytes,4,opt,name=reclaimPolicy" json:"reclaimPolicy,omitempty"`
	// Dynamically provisioned PersistentVolumes of this storage class are
	// created with these mountOptions, e.g. ["ro", "soft"]. Not validated -
	// mount of the PVs will simply fail if one is invalid.
	// +optional
	MountOptions []string `protobuf:"bytes,5,rep,name=mountOptions" json:"mountOptions,omitempty"`
	// AllowVolumeExpansion shows whether the storage class allow volume expand
	// +optional
	AllowVolumeExpansion *bool `protobuf:"varint,6,opt,name=allowVolumeExpansion" json:"allowVolumeExpansion,omitempty"`
	// VolumeBindingMode indicates how PersistentVolumeClaims should be
	// provisioned and bound.  When unset, VolumeBindingImmediate is used.
	// This field is alpha-level and is only honored by servers that enable
	// the VolumeScheduling feature.
	// +optional
	VolumeBindingMode *string `protobuf:"bytes,7,opt,name=volumeBindingMode" json:"volumeBindingMode,omitempty"`
	XXX_unrecognized  []byte  `json:"-"`
}

StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.

StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.

func (*StorageClass) Descriptor

func (*StorageClass) Descriptor() ([]byte, []int)

func (*StorageClass) GetAllowVolumeExpansion added in v1.0.0

func (m *StorageClass) GetAllowVolumeExpansion() bool

func (*StorageClass) GetMetadata

func (*StorageClass) GetMountOptions added in v1.0.0

func (m *StorageClass) GetMountOptions() []string

func (*StorageClass) GetParameters

func (m *StorageClass) GetParameters() map[string]string

func (*StorageClass) GetProvisioner

func (m *StorageClass) GetProvisioner() string

func (*StorageClass) GetReclaimPolicy added in v1.0.0

func (m *StorageClass) GetReclaimPolicy() string

func (*StorageClass) GetVolumeBindingMode added in v1.0.0

func (m *StorageClass) GetVolumeBindingMode() string

func (*StorageClass) Marshal

func (m *StorageClass) Marshal() (dAtA []byte, err error)

func (*StorageClass) MarshalTo

func (m *StorageClass) MarshalTo(dAtA []byte) (int, error)

func (*StorageClass) ProtoMessage

func (*StorageClass) ProtoMessage()

func (*StorageClass) Reset

func (m *StorageClass) Reset()

func (*StorageClass) Size

func (m *StorageClass) Size() (n int)

func (*StorageClass) String

func (m *StorageClass) String() string

func (*StorageClass) Unmarshal

func (m *StorageClass) Unmarshal(dAtA []byte) error

type StorageClassList

type StorageClassList struct {
	// Standard list metadata
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Items is the list of StorageClasses
	Items            []*StorageClass `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_unrecognized []byte          `json:"-"`
}

StorageClassList is a collection of storage classes.

func (*StorageClassList) Descriptor

func (*StorageClassList) Descriptor() ([]byte, []int)

func (*StorageClassList) GetItems

func (m *StorageClassList) GetItems() []*StorageClass

func (*StorageClassList) GetMetadata

func (*StorageClassList) Marshal

func (m *StorageClassList) Marshal() (dAtA []byte, err error)

func (*StorageClassList) MarshalTo

func (m *StorageClassList) MarshalTo(dAtA []byte) (int, error)

func (*StorageClassList) ProtoMessage

func (*StorageClassList) ProtoMessage()

func (*StorageClassList) Reset

func (m *StorageClassList) Reset()

func (*StorageClassList) Size

func (m *StorageClassList) Size() (n int)

func (*StorageClassList) String

func (m *StorageClassList) String() string

func (*StorageClassList) Unmarshal

func (m *StorageClassList) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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