volumes

package
v0.3.42 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VolumeSource_EphemeralSource_Medium_name = map[int32]string{
		0: "UNKNOWN",
		1: "DEFAULT",
		2: "MEMORY",
	}
	VolumeSource_EphemeralSource_Medium_value = map[string]int32{
		"UNKNOWN": 0,
		"DEFAULT": 1,
		"MEMORY":  2,
	}
)

Enum value maps for VolumeSource_EphemeralSource_Medium.

View Source
var File_prodvana_volumes_volumes_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Volume

type Volume struct {
	Name   string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Source *VolumeSource `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Mount  *VolumeMount  `protobuf:"bytes,3,opt,name=mount,proto3" json:"mount,omitempty"`
	// contains filtered or unexported fields
}

func (*Volume) Descriptor deprecated

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

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetMount

func (x *Volume) GetMount() *VolumeMount

func (*Volume) GetName

func (x *Volume) GetName() string

func (*Volume) GetSource

func (x *Volume) GetSource() *VolumeSource

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect

func (x *Volume) ProtoReflect() protoreflect.Message

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

func (*Volume) Validate

func (m *Volume) Validate() error

Validate checks the field values on Volume with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Volume) ValidateAll

func (m *Volume) ValidateAll() error

ValidateAll checks the field values on Volume with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VolumeMultiError, or nil if none found.

type VolumeMount

type VolumeMount struct {
	MountPath string `protobuf:"bytes,1,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
	ReadOnly  bool   `protobuf:"varint,2,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeMount) Descriptor deprecated

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

Deprecated: Use VolumeMount.ProtoReflect.Descriptor instead.

func (*VolumeMount) GetMountPath

func (x *VolumeMount) GetMountPath() string

func (*VolumeMount) GetReadOnly

func (x *VolumeMount) GetReadOnly() bool

func (*VolumeMount) ProtoMessage

func (*VolumeMount) ProtoMessage()

func (*VolumeMount) ProtoReflect

func (x *VolumeMount) ProtoReflect() protoreflect.Message

func (*VolumeMount) Reset

func (x *VolumeMount) Reset()

func (*VolumeMount) String

func (x *VolumeMount) String() string

func (*VolumeMount) Validate

func (m *VolumeMount) Validate() error

Validate checks the field values on VolumeMount with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VolumeMount) ValidateAll

func (m *VolumeMount) ValidateAll() error

ValidateAll checks the field values on VolumeMount with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VolumeMountMultiError, or nil if none found.

type VolumeMountMultiError

type VolumeMountMultiError []error

VolumeMountMultiError is an error wrapping multiple validation errors returned by VolumeMount.ValidateAll() if the designated constraints aren't met.

func (VolumeMountMultiError) AllErrors

func (m VolumeMountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VolumeMountMultiError) Error

func (m VolumeMountMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type VolumeMountValidationError

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

VolumeMountValidationError is the validation error returned by VolumeMount.Validate if the designated constraints aren't met.

func (VolumeMountValidationError) Cause

Cause function returns cause value.

func (VolumeMountValidationError) Error

Error satisfies the builtin error interface

func (VolumeMountValidationError) ErrorName

func (e VolumeMountValidationError) ErrorName() string

ErrorName returns error name.

func (VolumeMountValidationError) Field

Field function returns field value.

func (VolumeMountValidationError) Key

Key function returns key value.

func (VolumeMountValidationError) Reason

Reason function returns reason value.

type VolumeMultiError

type VolumeMultiError []error

VolumeMultiError is an error wrapping multiple validation errors returned by Volume.ValidateAll() if the designated constraints aren't met.

func (VolumeMultiError) AllErrors

func (m VolumeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VolumeMultiError) Error

func (m VolumeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type VolumeSource

type VolumeSource struct {

	// Types that are assignable to Source:
	//
	//	*VolumeSource_Secret
	//	*VolumeSource_Ephemeral
	Source isVolumeSource_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

func (*VolumeSource) Descriptor deprecated

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

Deprecated: Use VolumeSource.ProtoReflect.Descriptor instead.

func (*VolumeSource) GetEphemeral

func (x *VolumeSource) GetEphemeral() *VolumeSource_EphemeralSource

func (*VolumeSource) GetSecret

func (x *VolumeSource) GetSecret() *VolumeSource_SecretSource

func (*VolumeSource) GetSource

func (m *VolumeSource) GetSource() isVolumeSource_Source

func (*VolumeSource) ProtoMessage

func (*VolumeSource) ProtoMessage()

func (*VolumeSource) ProtoReflect

func (x *VolumeSource) ProtoReflect() protoreflect.Message

func (*VolumeSource) Reset

func (x *VolumeSource) Reset()

func (*VolumeSource) String

func (x *VolumeSource) String() string

func (*VolumeSource) Validate

func (m *VolumeSource) Validate() error

Validate checks the field values on VolumeSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VolumeSource) ValidateAll

func (m *VolumeSource) ValidateAll() error

ValidateAll checks the field values on VolumeSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VolumeSourceMultiError, or nil if none found.

type VolumeSourceMultiError

type VolumeSourceMultiError []error

VolumeSourceMultiError is an error wrapping multiple validation errors returned by VolumeSource.ValidateAll() if the designated constraints aren't met.

func (VolumeSourceMultiError) AllErrors

func (m VolumeSourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VolumeSourceMultiError) Error

func (m VolumeSourceMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type VolumeSourceValidationError

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

VolumeSourceValidationError is the validation error returned by VolumeSource.Validate if the designated constraints aren't met.

func (VolumeSourceValidationError) Cause

Cause function returns cause value.

func (VolumeSourceValidationError) Error

Error satisfies the builtin error interface

func (VolumeSourceValidationError) ErrorName

func (e VolumeSourceValidationError) ErrorName() string

ErrorName returns error name.

func (VolumeSourceValidationError) Field

Field function returns field value.

func (VolumeSourceValidationError) Key

Key function returns key value.

func (VolumeSourceValidationError) Reason

Reason function returns reason value.

type VolumeSource_Ephemeral

type VolumeSource_Ephemeral struct {
	Ephemeral *VolumeSource_EphemeralSource `protobuf:"bytes,2,opt,name=ephemeral,proto3,oneof"`
}

type VolumeSource_EphemeralSource

type VolumeSource_EphemeralSource struct {
	Medium VolumeSource_EphemeralSource_Medium `protobuf:"varint,1,opt,name=medium,proto3,enum=prodvana.volumes.VolumeSource_EphemeralSource_Medium" json:"medium,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeSource_EphemeralSource) Descriptor deprecated

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

Deprecated: Use VolumeSource_EphemeralSource.ProtoReflect.Descriptor instead.

func (*VolumeSource_EphemeralSource) GetMedium

func (*VolumeSource_EphemeralSource) ProtoMessage

func (*VolumeSource_EphemeralSource) ProtoMessage()

func (*VolumeSource_EphemeralSource) ProtoReflect

func (*VolumeSource_EphemeralSource) Reset

func (x *VolumeSource_EphemeralSource) Reset()

func (*VolumeSource_EphemeralSource) String

func (*VolumeSource_EphemeralSource) Validate

func (m *VolumeSource_EphemeralSource) Validate() error

Validate checks the field values on VolumeSource_EphemeralSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VolumeSource_EphemeralSource) ValidateAll

func (m *VolumeSource_EphemeralSource) ValidateAll() error

ValidateAll checks the field values on VolumeSource_EphemeralSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VolumeSource_EphemeralSourceMultiError, or nil if none found.

type VolumeSource_EphemeralSourceMultiError

type VolumeSource_EphemeralSourceMultiError []error

VolumeSource_EphemeralSourceMultiError is an error wrapping multiple validation errors returned by VolumeSource_EphemeralSource.ValidateAll() if the designated constraints aren't met.

func (VolumeSource_EphemeralSourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (VolumeSource_EphemeralSourceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VolumeSource_EphemeralSourceValidationError

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

VolumeSource_EphemeralSourceValidationError is the validation error returned by VolumeSource_EphemeralSource.Validate if the designated constraints aren't met.

func (VolumeSource_EphemeralSourceValidationError) Cause

Cause function returns cause value.

func (VolumeSource_EphemeralSourceValidationError) Error

Error satisfies the builtin error interface

func (VolumeSource_EphemeralSourceValidationError) ErrorName

ErrorName returns error name.

func (VolumeSource_EphemeralSourceValidationError) Field

Field function returns field value.

func (VolumeSource_EphemeralSourceValidationError) Key

Key function returns key value.

func (VolumeSource_EphemeralSourceValidationError) Reason

Reason function returns reason value.

type VolumeSource_EphemeralSource_Medium

type VolumeSource_EphemeralSource_Medium int32
const (
	VolumeSource_EphemeralSource_UNKNOWN VolumeSource_EphemeralSource_Medium = 0
	VolumeSource_EphemeralSource_DEFAULT VolumeSource_EphemeralSource_Medium = 1 // for kubernetes, this the the node's default storage medium
	VolumeSource_EphemeralSource_MEMORY  VolumeSource_EphemeralSource_Medium = 2
)

func (VolumeSource_EphemeralSource_Medium) Descriptor

func (VolumeSource_EphemeralSource_Medium) Enum

func (VolumeSource_EphemeralSource_Medium) EnumDescriptor deprecated

func (VolumeSource_EphemeralSource_Medium) EnumDescriptor() ([]byte, []int)

Deprecated: Use VolumeSource_EphemeralSource_Medium.Descriptor instead.

func (VolumeSource_EphemeralSource_Medium) Number

func (VolumeSource_EphemeralSource_Medium) String

func (VolumeSource_EphemeralSource_Medium) Type

type VolumeSource_Secret

type VolumeSource_Secret struct {
	Secret *VolumeSource_SecretSource `protobuf:"bytes,1,opt,name=secret,proto3,oneof"`
}

type VolumeSource_SecretSource

type VolumeSource_SecretSource struct {
	SecretName string `protobuf:"bytes,1,opt,name=secret_name,json=secretName,proto3" json:"secret_name,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeSource_SecretSource) Descriptor deprecated

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

Deprecated: Use VolumeSource_SecretSource.ProtoReflect.Descriptor instead.

func (*VolumeSource_SecretSource) GetSecretName

func (x *VolumeSource_SecretSource) GetSecretName() string

func (*VolumeSource_SecretSource) ProtoMessage

func (*VolumeSource_SecretSource) ProtoMessage()

func (*VolumeSource_SecretSource) ProtoReflect

func (*VolumeSource_SecretSource) Reset

func (x *VolumeSource_SecretSource) Reset()

func (*VolumeSource_SecretSource) String

func (x *VolumeSource_SecretSource) String() string

func (*VolumeSource_SecretSource) Validate

func (m *VolumeSource_SecretSource) Validate() error

Validate checks the field values on VolumeSource_SecretSource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VolumeSource_SecretSource) ValidateAll

func (m *VolumeSource_SecretSource) ValidateAll() error

ValidateAll checks the field values on VolumeSource_SecretSource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VolumeSource_SecretSourceMultiError, or nil if none found.

type VolumeSource_SecretSourceMultiError

type VolumeSource_SecretSourceMultiError []error

VolumeSource_SecretSourceMultiError is an error wrapping multiple validation errors returned by VolumeSource_SecretSource.ValidateAll() if the designated constraints aren't met.

func (VolumeSource_SecretSourceMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (VolumeSource_SecretSourceMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VolumeSource_SecretSourceValidationError

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

VolumeSource_SecretSourceValidationError is the validation error returned by VolumeSource_SecretSource.Validate if the designated constraints aren't met.

func (VolumeSource_SecretSourceValidationError) Cause

Cause function returns cause value.

func (VolumeSource_SecretSourceValidationError) Error

Error satisfies the builtin error interface

func (VolumeSource_SecretSourceValidationError) ErrorName

ErrorName returns error name.

func (VolumeSource_SecretSourceValidationError) Field

Field function returns field value.

func (VolumeSource_SecretSourceValidationError) Key

Key function returns key value.

func (VolumeSource_SecretSourceValidationError) Reason

Reason function returns reason value.

type VolumeValidationError

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

VolumeValidationError is the validation error returned by Volume.Validate if the designated constraints aren't met.

func (VolumeValidationError) Cause

func (e VolumeValidationError) Cause() error

Cause function returns cause value.

func (VolumeValidationError) Error

func (e VolumeValidationError) Error() string

Error satisfies the builtin error interface

func (VolumeValidationError) ErrorName

func (e VolumeValidationError) ErrorName() string

ErrorName returns error name.

func (VolumeValidationError) Field

func (e VolumeValidationError) Field() string

Field function returns field value.

func (VolumeValidationError) Key

func (e VolumeValidationError) Key() bool

Key function returns key value.

func (VolumeValidationError) Reason

func (e VolumeValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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