v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceMarshaler   = &jsonpb.Marshaler{}
	ResourceUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var File_apis_v1_resource_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Project   string              `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Name      string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Location  string              `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	NodePools []*Cluster_NodePool `protobuf:"bytes,4,rep,name=node_pools,json=nodePools,proto3" json:"node_pools,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. Required by controller-gen.

func (*Cluster) DeepCopyInterface

func (in *Cluster) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. Required by controller-gen.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto supports using Cluster within kubernetes types, where deepcopy-gen is used.

func (*Cluster) Descriptor deprecated

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetLocation

func (x *Cluster) GetLocation() string

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) GetNodePools

func (x *Cluster) GetNodePools() []*Cluster_NodePool

func (*Cluster) GetProject

func (x *Cluster) GetProject() string

func (*Cluster) MarshalJSON

func (this *Cluster) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Cluster

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

func (*Cluster) UnmarshalJSON

func (this *Cluster) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Cluster

func (*Cluster) Validate

func (m *Cluster) Validate() error

Validate checks the field values on Cluster 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 (*Cluster) ValidateAll

func (m *Cluster) ValidateAll() error

ValidateAll checks the field values on Cluster 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 ClusterMultiError, or nil if none found.

type ClusterMultiError

type ClusterMultiError []error

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

func (ClusterMultiError) AllErrors

func (m ClusterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClusterMultiError) Error

func (m ClusterMultiError) Error() string

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

type ClusterValidationError

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

ClusterValidationError is the validation error returned by Cluster.Validate if the designated constraints aren't met.

func (ClusterValidationError) Cause

func (e ClusterValidationError) Cause() error

Cause function returns cause value.

func (ClusterValidationError) Error

func (e ClusterValidationError) Error() string

Error satisfies the builtin error interface

func (ClusterValidationError) ErrorName

func (e ClusterValidationError) ErrorName() string

ErrorName returns error name.

func (ClusterValidationError) Field

func (e ClusterValidationError) Field() string

Field function returns field value.

func (ClusterValidationError) Key

func (e ClusterValidationError) Key() bool

Key function returns key value.

func (ClusterValidationError) Reason

func (e ClusterValidationError) Reason() string

Reason function returns reason value.

type Cluster_NodePool

type Cluster_NodePool struct {
	Name             string                        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InstanceGroups   []string                      `protobuf:"bytes,2,rep,name=instance_groups,json=instanceGroups,proto3" json:"instance_groups,omitempty"`
	Locations        []string                      `protobuf:"bytes,3,rep,name=locations,proto3" json:"locations,omitempty"`
	InitialNodeCount int32                         `protobuf:"varint,4,opt,name=initial_node_count,json=initialNodeCount,proto3" json:"initial_node_count,omitempty"`
	CurrentSize      int32                         `protobuf:"varint,5,opt,name=current_size,json=currentSize,proto3" json:"current_size,omitempty"`
	Autoscaling      *Cluster_NodePool_AutoScaling `protobuf:"bytes,6,opt,name=autoscaling,proto3" json:"autoscaling,omitempty"`
	Spot             bool                          `protobuf:"varint,7,opt,name=spot,proto3" json:"spot,omitempty"`
	Preemptible      bool                          `protobuf:"varint,8,opt,name=preemptible,proto3" json:"preemptible,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster_NodePool) DeepCopy

func (in *Cluster_NodePool) DeepCopy() *Cluster_NodePool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster_NodePool. Required by controller-gen.

func (*Cluster_NodePool) DeepCopyInterface

func (in *Cluster_NodePool) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Cluster_NodePool. Required by controller-gen.

func (*Cluster_NodePool) DeepCopyInto

func (in *Cluster_NodePool) DeepCopyInto(out *Cluster_NodePool)

DeepCopyInto supports using Cluster_NodePool within kubernetes types, where deepcopy-gen is used.

func (*Cluster_NodePool) Descriptor deprecated

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

Deprecated: Use Cluster_NodePool.ProtoReflect.Descriptor instead.

func (*Cluster_NodePool) GetAutoscaling

func (x *Cluster_NodePool) GetAutoscaling() *Cluster_NodePool_AutoScaling

func (*Cluster_NodePool) GetCurrentSize

func (x *Cluster_NodePool) GetCurrentSize() int32

func (*Cluster_NodePool) GetInitialNodeCount

func (x *Cluster_NodePool) GetInitialNodeCount() int32

func (*Cluster_NodePool) GetInstanceGroups

func (x *Cluster_NodePool) GetInstanceGroups() []string

func (*Cluster_NodePool) GetLocations

func (x *Cluster_NodePool) GetLocations() []string

func (*Cluster_NodePool) GetName

func (x *Cluster_NodePool) GetName() string

func (*Cluster_NodePool) GetPreemptible

func (x *Cluster_NodePool) GetPreemptible() bool

func (*Cluster_NodePool) GetSpot

func (x *Cluster_NodePool) GetSpot() bool

func (*Cluster_NodePool) MarshalJSON

func (this *Cluster_NodePool) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Cluster_NodePool

func (*Cluster_NodePool) ProtoMessage

func (*Cluster_NodePool) ProtoMessage()

func (*Cluster_NodePool) ProtoReflect

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

func (*Cluster_NodePool) Reset

func (x *Cluster_NodePool) Reset()

func (*Cluster_NodePool) String

func (x *Cluster_NodePool) String() string

func (*Cluster_NodePool) UnmarshalJSON

func (this *Cluster_NodePool) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Cluster_NodePool

func (*Cluster_NodePool) Validate

func (m *Cluster_NodePool) Validate() error

Validate checks the field values on Cluster_NodePool 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 (*Cluster_NodePool) ValidateAll

func (m *Cluster_NodePool) ValidateAll() error

ValidateAll checks the field values on Cluster_NodePool 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 Cluster_NodePoolMultiError, or nil if none found.

type Cluster_NodePoolMultiError

type Cluster_NodePoolMultiError []error

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

func (Cluster_NodePoolMultiError) AllErrors

func (m Cluster_NodePoolMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Cluster_NodePoolMultiError) Error

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

type Cluster_NodePoolValidationError

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

Cluster_NodePoolValidationError is the validation error returned by Cluster_NodePool.Validate if the designated constraints aren't met.

func (Cluster_NodePoolValidationError) Cause

Cause function returns cause value.

func (Cluster_NodePoolValidationError) Error

Error satisfies the builtin error interface

func (Cluster_NodePoolValidationError) ErrorName

ErrorName returns error name.

func (Cluster_NodePoolValidationError) Field

Field function returns field value.

func (Cluster_NodePoolValidationError) Key

Key function returns key value.

func (Cluster_NodePoolValidationError) Reason

Reason function returns reason value.

type Cluster_NodePool_AutoScaling

type Cluster_NodePool_AutoScaling struct {
	Enabled           bool   `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	MinNodeCount      int32  `protobuf:"varint,2,opt,name=min_node_count,json=minNodeCount,proto3" json:"min_node_count,omitempty"`
	MaxNodeCount      int32  `protobuf:"varint,3,opt,name=max_node_count,json=maxNodeCount,proto3" json:"max_node_count,omitempty"`
	Autoprovisioned   bool   `protobuf:"varint,4,opt,name=autoprovisioned,proto3" json:"autoprovisioned,omitempty"`
	LocationPolicy    string `protobuf:"bytes,5,opt,name=location_policy,json=locationPolicy,proto3" json:"location_policy,omitempty"`
	TotalMinNodeCount int32  `protobuf:"varint,6,opt,name=total_min_node_count,json=totalMinNodeCount,proto3" json:"total_min_node_count,omitempty"`
	TotalMaxNodeCount int32  `protobuf:"varint,7,opt,name=total_max_node_count,json=totalMaxNodeCount,proto3" json:"total_max_node_count,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster_NodePool_AutoScaling) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster_NodePool_AutoScaling. Required by controller-gen.

func (*Cluster_NodePool_AutoScaling) DeepCopyInterface

func (in *Cluster_NodePool_AutoScaling) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Cluster_NodePool_AutoScaling. Required by controller-gen.

func (*Cluster_NodePool_AutoScaling) DeepCopyInto

DeepCopyInto supports using Cluster_NodePool_AutoScaling within kubernetes types, where deepcopy-gen is used.

func (*Cluster_NodePool_AutoScaling) Descriptor deprecated

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

Deprecated: Use Cluster_NodePool_AutoScaling.ProtoReflect.Descriptor instead.

func (*Cluster_NodePool_AutoScaling) GetAutoprovisioned

func (x *Cluster_NodePool_AutoScaling) GetAutoprovisioned() bool

func (*Cluster_NodePool_AutoScaling) GetEnabled

func (x *Cluster_NodePool_AutoScaling) GetEnabled() bool

func (*Cluster_NodePool_AutoScaling) GetLocationPolicy

func (x *Cluster_NodePool_AutoScaling) GetLocationPolicy() string

func (*Cluster_NodePool_AutoScaling) GetMaxNodeCount

func (x *Cluster_NodePool_AutoScaling) GetMaxNodeCount() int32

func (*Cluster_NodePool_AutoScaling) GetMinNodeCount

func (x *Cluster_NodePool_AutoScaling) GetMinNodeCount() int32

func (*Cluster_NodePool_AutoScaling) GetTotalMaxNodeCount

func (x *Cluster_NodePool_AutoScaling) GetTotalMaxNodeCount() int32

func (*Cluster_NodePool_AutoScaling) GetTotalMinNodeCount

func (x *Cluster_NodePool_AutoScaling) GetTotalMinNodeCount() int32

func (*Cluster_NodePool_AutoScaling) MarshalJSON

func (this *Cluster_NodePool_AutoScaling) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Cluster_NodePool_AutoScaling

func (*Cluster_NodePool_AutoScaling) ProtoMessage

func (*Cluster_NodePool_AutoScaling) ProtoMessage()

func (*Cluster_NodePool_AutoScaling) ProtoReflect

func (*Cluster_NodePool_AutoScaling) Reset

func (x *Cluster_NodePool_AutoScaling) Reset()

func (*Cluster_NodePool_AutoScaling) String

func (*Cluster_NodePool_AutoScaling) UnmarshalJSON

func (this *Cluster_NodePool_AutoScaling) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Cluster_NodePool_AutoScaling

func (*Cluster_NodePool_AutoScaling) Validate

func (m *Cluster_NodePool_AutoScaling) Validate() error

Validate checks the field values on Cluster_NodePool_AutoScaling 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 (*Cluster_NodePool_AutoScaling) ValidateAll

func (m *Cluster_NodePool_AutoScaling) ValidateAll() error

ValidateAll checks the field values on Cluster_NodePool_AutoScaling 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 Cluster_NodePool_AutoScalingMultiError, or nil if none found.

type Cluster_NodePool_AutoScalingMultiError

type Cluster_NodePool_AutoScalingMultiError []error

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

func (Cluster_NodePool_AutoScalingMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Cluster_NodePool_AutoScalingMultiError) Error

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

type Cluster_NodePool_AutoScalingValidationError

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

Cluster_NodePool_AutoScalingValidationError is the validation error returned by Cluster_NodePool_AutoScaling.Validate if the designated constraints aren't met.

func (Cluster_NodePool_AutoScalingValidationError) Cause

Cause function returns cause value.

func (Cluster_NodePool_AutoScalingValidationError) Error

Error satisfies the builtin error interface

func (Cluster_NodePool_AutoScalingValidationError) ErrorName

ErrorName returns error name.

func (Cluster_NodePool_AutoScalingValidationError) Field

Field function returns field value.

func (Cluster_NodePool_AutoScalingValidationError) Key

Key function returns key value.

func (Cluster_NodePool_AutoScalingValidationError) Reason

Reason function returns reason value.

type Resource

type Resource struct {

	// Types that are assignable to Specifier:
	//
	//	*Resource_Cluster
	//	*Resource_Sql
	//	*Resource_Vm
	Specifier isResource_Specifier   `protobuf_oneof:"specifier"`
	PausedAt  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=paused_at,json=pausedAt,proto3" json:"paused_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource. Required by controller-gen.

func (*Resource) DeepCopyInterface

func (in *Resource) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Resource. Required by controller-gen.

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

DeepCopyInto supports using Resource within kubernetes types, where deepcopy-gen is used.

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetCluster

func (x *Resource) GetCluster() *Cluster

func (*Resource) GetPausedAt

func (x *Resource) GetPausedAt() *timestamppb.Timestamp

func (*Resource) GetSpecifier

func (m *Resource) GetSpecifier() isResource_Specifier

func (*Resource) GetSql

func (x *Resource) GetSql() *Sql

func (*Resource) GetVm

func (x *Resource) GetVm() *Vm

func (*Resource) MarshalJSON

func (this *Resource) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Resource

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

func (*Resource) UnmarshalJSON

func (this *Resource) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Resource

func (*Resource) Validate

func (m *Resource) Validate() error

Validate checks the field values on Resource 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 (*Resource) ValidateAll

func (m *Resource) ValidateAll() error

ValidateAll checks the field values on Resource 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 ResourceMultiError, or nil if none found.

type ResourceMultiError

type ResourceMultiError []error

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

func (ResourceMultiError) AllErrors

func (m ResourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceMultiError) Error

func (m ResourceMultiError) Error() string

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

type ResourceValidationError

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

ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.

func (ResourceValidationError) Cause

func (e ResourceValidationError) Cause() error

Cause function returns cause value.

func (ResourceValidationError) Error

func (e ResourceValidationError) Error() string

Error satisfies the builtin error interface

func (ResourceValidationError) ErrorName

func (e ResourceValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceValidationError) Field

func (e ResourceValidationError) Field() string

Field function returns field value.

func (ResourceValidationError) Key

func (e ResourceValidationError) Key() bool

Key function returns key value.

func (ResourceValidationError) Reason

func (e ResourceValidationError) Reason() string

Reason function returns reason value.

type Resource_Cluster

type Resource_Cluster struct {
	Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"`
}

type Resource_Sql

type Resource_Sql struct {
	Sql *Sql `protobuf:"bytes,2,opt,name=sql,proto3,oneof"`
}

type Resource_Vm

type Resource_Vm struct {
	Vm *Vm `protobuf:"bytes,3,opt,name=vm,proto3,oneof"`
}

type Sql

type Sql struct {
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Project         string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	Region          string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	GceZone         string `protobuf:"bytes,4,opt,name=gce_zone,json=gceZone,proto3" json:"gce_zone,omitempty"`
	State           string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	DatabaseVersion string `protobuf:"bytes,6,opt,name=database_version,json=databaseVersion,proto3" json:"database_version,omitempty"`
	// contains filtered or unexported fields
}

func (*Sql) DeepCopy

func (in *Sql) DeepCopy() *Sql

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sql. Required by controller-gen.

func (*Sql) DeepCopyInterface

func (in *Sql) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Sql. Required by controller-gen.

func (*Sql) DeepCopyInto

func (in *Sql) DeepCopyInto(out *Sql)

DeepCopyInto supports using Sql within kubernetes types, where deepcopy-gen is used.

func (*Sql) Descriptor deprecated

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

Deprecated: Use Sql.ProtoReflect.Descriptor instead.

func (*Sql) GetDatabaseVersion

func (x *Sql) GetDatabaseVersion() string

func (*Sql) GetGceZone

func (x *Sql) GetGceZone() string

func (*Sql) GetName

func (x *Sql) GetName() string

func (*Sql) GetProject

func (x *Sql) GetProject() string

func (*Sql) GetRegion

func (x *Sql) GetRegion() string

func (*Sql) GetState

func (x *Sql) GetState() string

func (*Sql) MarshalJSON

func (this *Sql) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Sql

func (*Sql) ProtoMessage

func (*Sql) ProtoMessage()

func (*Sql) ProtoReflect

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

func (*Sql) Reset

func (x *Sql) Reset()

func (*Sql) String

func (x *Sql) String() string

func (*Sql) UnmarshalJSON

func (this *Sql) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Sql

func (*Sql) Validate

func (m *Sql) Validate() error

Validate checks the field values on Sql 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 (*Sql) ValidateAll

func (m *Sql) ValidateAll() error

ValidateAll checks the field values on Sql 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 SqlMultiError, or nil if none found.

type SqlMultiError

type SqlMultiError []error

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

func (SqlMultiError) AllErrors

func (m SqlMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SqlMultiError) Error

func (m SqlMultiError) Error() string

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

type SqlValidationError

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

SqlValidationError is the validation error returned by Sql.Validate if the designated constraints aren't met.

func (SqlValidationError) Cause

func (e SqlValidationError) Cause() error

Cause function returns cause value.

func (SqlValidationError) Error

func (e SqlValidationError) Error() string

Error satisfies the builtin error interface

func (SqlValidationError) ErrorName

func (e SqlValidationError) ErrorName() string

ErrorName returns error name.

func (SqlValidationError) Field

func (e SqlValidationError) Field() string

Field function returns field value.

func (SqlValidationError) Key

func (e SqlValidationError) Key() bool

Key function returns key value.

func (SqlValidationError) Reason

func (e SqlValidationError) Reason() string

Reason function returns reason value.

type Vm

type Vm struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Zone    string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
	State   string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*Vm) DeepCopy

func (in *Vm) DeepCopy() *Vm

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vm. Required by controller-gen.

func (*Vm) DeepCopyInterface

func (in *Vm) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Vm. Required by controller-gen.

func (*Vm) DeepCopyInto

func (in *Vm) DeepCopyInto(out *Vm)

DeepCopyInto supports using Vm within kubernetes types, where deepcopy-gen is used.

func (*Vm) Descriptor deprecated

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

Deprecated: Use Vm.ProtoReflect.Descriptor instead.

func (*Vm) GetName

func (x *Vm) GetName() string

func (*Vm) GetProject

func (x *Vm) GetProject() string

func (*Vm) GetState

func (x *Vm) GetState() string

func (*Vm) GetZone

func (x *Vm) GetZone() string

func (*Vm) MarshalJSON

func (this *Vm) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Vm

func (*Vm) ProtoMessage

func (*Vm) ProtoMessage()

func (*Vm) ProtoReflect

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

func (*Vm) Reset

func (x *Vm) Reset()

func (*Vm) String

func (x *Vm) String() string

func (*Vm) UnmarshalJSON

func (this *Vm) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Vm

func (*Vm) Validate

func (m *Vm) Validate() error

Validate checks the field values on Vm 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 (*Vm) ValidateAll

func (m *Vm) ValidateAll() error

ValidateAll checks the field values on Vm 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 VmMultiError, or nil if none found.

type VmMultiError

type VmMultiError []error

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

func (VmMultiError) AllErrors

func (m VmMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VmMultiError) Error

func (m VmMultiError) Error() string

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

type VmValidationError

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

VmValidationError is the validation error returned by Vm.Validate if the designated constraints aren't met.

func (VmValidationError) Cause

func (e VmValidationError) Cause() error

Cause function returns cause value.

func (VmValidationError) Error

func (e VmValidationError) Error() string

Error satisfies the builtin error interface

func (VmValidationError) ErrorName

func (e VmValidationError) ErrorName() string

ErrorName returns error name.

func (VmValidationError) Field

func (e VmValidationError) Field() string

Field function returns field value.

func (VmValidationError) Key

func (e VmValidationError) Key() bool

Key function returns key value.

func (VmValidationError) Reason

func (e VmValidationError) 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