resourcev1alpha1

package
v0.0.0-...-0310e4a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package resourcev1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	WatchResponse_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_UPSERT",
		2: "OPERATION_DELETE",
	}
	WatchResponse_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"OPERATION_UPSERT":      1,
		"OPERATION_DELETE":      2,
	}
)

Enum value maps for WatchResponse_Operation.

View Source
var File_resource_v1alpha1_resource_proto protoreflect.FileDescriptor
View Source
var ResourceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "resource.v1alpha1.ResourceService",
	HandlerType: (*ResourceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Read",
			Handler:    _ResourceService_Read_Handler,
		},
		{
			MethodName: "Write",
			Handler:    _ResourceService_Write_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ResourceService_List_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ResourceService_Delete_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Watch",
			Handler:       _ResourceService_Watch_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "resource/v1alpha1/resource.proto",
}

ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterResourceServiceHandler

func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterResourceServiceHandler registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterResourceServiceHandlerClient

func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error

RegisterResourceServiceHandlerClient registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResourceServiceClient" to call the correct interceptors.

func RegisterResourceServiceHandlerFromEndpoint

func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterResourceServiceServer

func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)

Types

type DeleteRequest

type DeleteRequest struct {
	Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() *ResourceID

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate

func (m *DeleteRequest) Validate() error

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

func (m *DeleteRequest) ValidateAll() error

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

type DeleteRequestMultiError

type DeleteRequestMultiError []error

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

func (DeleteRequestMultiError) AllErrors

func (m DeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRequestMultiError) Error

func (m DeleteRequestMultiError) Error() string

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

type DeleteRequestValidationError

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

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

Reason function returns reason value.

type DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate

func (m *DeleteResponse) Validate() error

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

func (m *DeleteResponse) ValidateAll() error

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

type DeleteResponseMultiError

type DeleteResponseMultiError []error

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

func (DeleteResponseMultiError) AllErrors

func (m DeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteResponseMultiError) Error

func (m DeleteResponseMultiError) Error() string

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

type DeleteResponseValidationError

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

DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.

func (DeleteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteResponseValidationError) ErrorName

func (e DeleteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResponseValidationError) Field

Field function returns field value.

func (DeleteResponseValidationError) Key

Key function returns key value.

func (DeleteResponseValidationError) Reason

Reason function returns reason value.

type ListRequest

type ListRequest struct {
	Type    *ResourceType    `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Tenancy *ResourceTenancy `protobuf:"bytes,2,opt,name=tenancy,proto3" json:"tenancy,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetTenancy

func (x *ListRequest) GetTenancy() *ResourceTenancy

func (*ListRequest) GetType

func (x *ListRequest) GetType() *ResourceType

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

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

func (m *ListRequest) ValidateAll() error

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

type ListRequestMultiError

type ListRequestMultiError []error

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

func (ListRequestMultiError) AllErrors

func (m ListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRequestMultiError) Error

func (m ListRequestMultiError) Error() string

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

type ListRequestValidationError

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetResources

func (x *ListResponse) GetResources() []*Resource

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

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

func (m *ListResponse) ValidateAll() error

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

type ListResponseMultiError

type ListResponseMultiError []error

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

func (ListResponseMultiError) AllErrors

func (m ListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListResponseMultiError) Error

func (m ListResponseMultiError) Error() string

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

type ListResponseValidationError

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type ReadRequest

type ReadRequest struct {
	Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadRequest) Descriptor deprecated

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

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetId

func (x *ReadRequest) GetId() *ResourceID

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect

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

func (*ReadRequest) Reset

func (x *ReadRequest) Reset()

func (*ReadRequest) String

func (x *ReadRequest) String() string

func (*ReadRequest) Validate

func (m *ReadRequest) Validate() error

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

func (m *ReadRequest) ValidateAll() error

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

type ReadRequestMultiError

type ReadRequestMultiError []error

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

func (ReadRequestMultiError) AllErrors

func (m ReadRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadRequestMultiError) Error

func (m ReadRequestMultiError) Error() string

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

type ReadRequestValidationError

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

ReadRequestValidationError is the validation error returned by ReadRequest.Validate if the designated constraints aren't met.

func (ReadRequestValidationError) Cause

Cause function returns cause value.

func (ReadRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadRequestValidationError) ErrorName

func (e ReadRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ReadRequestValidationError) Field

Field function returns field value.

func (ReadRequestValidationError) Key

Key function returns key value.

func (ReadRequestValidationError) Reason

Reason function returns reason value.

type ReadResponse

type ReadResponse struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated

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

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetResource

func (x *ReadResponse) GetResource() *Resource

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect

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

func (*ReadResponse) Reset

func (x *ReadResponse) Reset()

func (*ReadResponse) String

func (x *ReadResponse) String() string

func (*ReadResponse) Validate

func (m *ReadResponse) Validate() error

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

func (m *ReadResponse) ValidateAll() error

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

type ReadResponseMultiError

type ReadResponseMultiError []error

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

func (ReadResponseMultiError) AllErrors

func (m ReadResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadResponseMultiError) Error

func (m ReadResponseMultiError) Error() string

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

type ReadResponseValidationError

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

ReadResponseValidationError is the validation error returned by ReadResponse.Validate if the designated constraints aren't met.

func (ReadResponseValidationError) Cause

Cause function returns cause value.

func (ReadResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadResponseValidationError) ErrorName

func (e ReadResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ReadResponseValidationError) Field

Field function returns field value.

func (ReadResponseValidationError) Key

Key function returns key value.

func (ReadResponseValidationError) Reason

Reason function returns reason value.

type Resource

type Resource struct {
	Id   *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data int32       `protobuf:"varint,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetData

func (x *Resource) GetData() int32

func (*Resource) GetId

func (x *Resource) GetId() *ResourceID

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) 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 ResourceID

type ResourceID struct {
	Type    *ResourceType    `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Tenancy *ResourceTenancy `protobuf:"bytes,2,opt,name=tenancy,proto3" json:"tenancy,omitempty"`
	Name    string           `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceID) Descriptor deprecated

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

Deprecated: Use ResourceID.ProtoReflect.Descriptor instead.

func (*ResourceID) GetName

func (x *ResourceID) GetName() string

func (*ResourceID) GetTenancy

func (x *ResourceID) GetTenancy() *ResourceTenancy

func (*ResourceID) GetType

func (x *ResourceID) GetType() *ResourceType

func (*ResourceID) ProtoMessage

func (*ResourceID) ProtoMessage()

func (*ResourceID) ProtoReflect

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

func (*ResourceID) Reset

func (x *ResourceID) Reset()

func (*ResourceID) String

func (x *ResourceID) String() string

func (*ResourceID) Validate

func (m *ResourceID) Validate() error

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

func (m *ResourceID) ValidateAll() error

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

type ResourceIDMultiError

type ResourceIDMultiError []error

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

func (ResourceIDMultiError) AllErrors

func (m ResourceIDMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceIDMultiError) Error

func (m ResourceIDMultiError) Error() string

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

type ResourceIDValidationError

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

ResourceIDValidationError is the validation error returned by ResourceID.Validate if the designated constraints aren't met.

func (ResourceIDValidationError) Cause

func (e ResourceIDValidationError) Cause() error

Cause function returns cause value.

func (ResourceIDValidationError) Error

Error satisfies the builtin error interface

func (ResourceIDValidationError) ErrorName

func (e ResourceIDValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceIDValidationError) Field

Field function returns field value.

func (ResourceIDValidationError) Key

Key function returns key value.

func (ResourceIDValidationError) Reason

func (e ResourceIDValidationError) Reason() string

Reason function returns reason value.

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 ResourceServiceClient

type ResourceServiceClient interface {
	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (ResourceService_WatchClient, error)
}

ResourceServiceClient is the client API for ResourceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ResourceServiceServer

ResourceServiceServer is the server API for ResourceService service. All implementations should embed UnimplementedResourceServiceServer for forward compatibility

type ResourceService_WatchClient

type ResourceService_WatchClient interface {
	Recv() (*WatchResponse, error)
	grpc.ClientStream
}

type ResourceService_WatchServer

type ResourceService_WatchServer interface {
	Send(*WatchResponse) error
	grpc.ServerStream
}

type ResourceTenancy

type ResourceTenancy struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Peer      string `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"`
	Partition string `protobuf:"bytes,3,opt,name=partition,proto3" json:"partition,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceTenancy) Descriptor deprecated

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

Deprecated: Use ResourceTenancy.ProtoReflect.Descriptor instead.

func (*ResourceTenancy) GetNamespace

func (x *ResourceTenancy) GetNamespace() string

func (*ResourceTenancy) GetPartition

func (x *ResourceTenancy) GetPartition() string

func (*ResourceTenancy) GetPeer

func (x *ResourceTenancy) GetPeer() string

func (*ResourceTenancy) ProtoMessage

func (*ResourceTenancy) ProtoMessage()

func (*ResourceTenancy) ProtoReflect

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

func (*ResourceTenancy) Reset

func (x *ResourceTenancy) Reset()

func (*ResourceTenancy) String

func (x *ResourceTenancy) String() string

func (*ResourceTenancy) Validate

func (m *ResourceTenancy) Validate() error

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

func (m *ResourceTenancy) ValidateAll() error

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

type ResourceTenancyMultiError

type ResourceTenancyMultiError []error

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

func (ResourceTenancyMultiError) AllErrors

func (m ResourceTenancyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceTenancyMultiError) Error

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

type ResourceTenancyValidationError

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

ResourceTenancyValidationError is the validation error returned by ResourceTenancy.Validate if the designated constraints aren't met.

func (ResourceTenancyValidationError) Cause

Cause function returns cause value.

func (ResourceTenancyValidationError) Error

Error satisfies the builtin error interface

func (ResourceTenancyValidationError) ErrorName

func (e ResourceTenancyValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceTenancyValidationError) Field

Field function returns field value.

func (ResourceTenancyValidationError) Key

Key function returns key value.

func (ResourceTenancyValidationError) Reason

Reason function returns reason value.

type ResourceType

type ResourceType struct {
	Group   string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Kind    string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceType) Descriptor deprecated

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

Deprecated: Use ResourceType.ProtoReflect.Descriptor instead.

func (*ResourceType) GetGroup

func (x *ResourceType) GetGroup() string

func (*ResourceType) GetKind

func (x *ResourceType) GetKind() string

func (*ResourceType) GetVersion

func (x *ResourceType) GetVersion() string

func (*ResourceType) ProtoMessage

func (*ResourceType) ProtoMessage()

func (*ResourceType) ProtoReflect

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

func (*ResourceType) Reset

func (x *ResourceType) Reset()

func (*ResourceType) String

func (x *ResourceType) String() string

func (*ResourceType) Validate

func (m *ResourceType) Validate() error

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

func (m *ResourceType) ValidateAll() error

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

type ResourceTypeMultiError

type ResourceTypeMultiError []error

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

func (ResourceTypeMultiError) AllErrors

func (m ResourceTypeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResourceTypeMultiError) Error

func (m ResourceTypeMultiError) Error() string

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

type ResourceTypeValidationError

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

ResourceTypeValidationError is the validation error returned by ResourceType.Validate if the designated constraints aren't met.

func (ResourceTypeValidationError) Cause

Cause function returns cause value.

func (ResourceTypeValidationError) Error

Error satisfies the builtin error interface

func (ResourceTypeValidationError) ErrorName

func (e ResourceTypeValidationError) ErrorName() string

ErrorName returns error name.

func (ResourceTypeValidationError) Field

Field function returns field value.

func (ResourceTypeValidationError) Key

Key function returns key value.

func (ResourceTypeValidationError) Reason

Reason function returns reason value.

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 UnimplementedResourceServiceServer

type UnimplementedResourceServiceServer struct {
}

UnimplementedResourceServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedResourceServiceServer) Delete

func (UnimplementedResourceServiceServer) List

func (UnimplementedResourceServiceServer) Read

func (UnimplementedResourceServiceServer) Watch

func (UnimplementedResourceServiceServer) Write

type UnsafeResourceServiceServer

type UnsafeResourceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.

type WatchRequest

type WatchRequest struct {
	Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchRequest) Descriptor deprecated

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

Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.

func (*WatchRequest) GetId

func (x *WatchRequest) GetId() *ResourceID

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) ProtoReflect

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

func (*WatchRequest) Reset

func (x *WatchRequest) Reset()

func (*WatchRequest) String

func (x *WatchRequest) String() string

func (*WatchRequest) Validate

func (m *WatchRequest) Validate() error

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

func (m *WatchRequest) ValidateAll() error

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

type WatchRequestMultiError

type WatchRequestMultiError []error

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

func (WatchRequestMultiError) AllErrors

func (m WatchRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WatchRequestMultiError) Error

func (m WatchRequestMultiError) Error() string

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

type WatchRequestValidationError

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

WatchRequestValidationError is the validation error returned by WatchRequest.Validate if the designated constraints aren't met.

func (WatchRequestValidationError) Cause

Cause function returns cause value.

func (WatchRequestValidationError) Error

Error satisfies the builtin error interface

func (WatchRequestValidationError) ErrorName

func (e WatchRequestValidationError) ErrorName() string

ErrorName returns error name.

func (WatchRequestValidationError) Field

Field function returns field value.

func (WatchRequestValidationError) Key

Key function returns key value.

func (WatchRequestValidationError) Reason

Reason function returns reason value.

type WatchResponse

type WatchResponse struct {
	Operation WatchResponse_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=resource.v1alpha1.WatchResponse_Operation" json:"operation,omitempty"`
	Resource  *Resource               `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchResponse) Descriptor deprecated

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

Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.

func (*WatchResponse) GetOperation

func (x *WatchResponse) GetOperation() WatchResponse_Operation

func (*WatchResponse) GetResource

func (x *WatchResponse) GetResource() *Resource

func (*WatchResponse) ProtoMessage

func (*WatchResponse) ProtoMessage()

func (*WatchResponse) ProtoReflect

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

func (*WatchResponse) Reset

func (x *WatchResponse) Reset()

func (*WatchResponse) String

func (x *WatchResponse) String() string

func (*WatchResponse) Validate

func (m *WatchResponse) Validate() error

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

func (m *WatchResponse) ValidateAll() error

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

type WatchResponseMultiError

type WatchResponseMultiError []error

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

func (WatchResponseMultiError) AllErrors

func (m WatchResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WatchResponseMultiError) Error

func (m WatchResponseMultiError) Error() string

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

type WatchResponseValidationError

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

WatchResponseValidationError is the validation error returned by WatchResponse.Validate if the designated constraints aren't met.

func (WatchResponseValidationError) Cause

Cause function returns cause value.

func (WatchResponseValidationError) Error

Error satisfies the builtin error interface

func (WatchResponseValidationError) ErrorName

func (e WatchResponseValidationError) ErrorName() string

ErrorName returns error name.

func (WatchResponseValidationError) Field

Field function returns field value.

func (WatchResponseValidationError) Key

Key function returns key value.

func (WatchResponseValidationError) Reason

Reason function returns reason value.

type WatchResponse_Operation

type WatchResponse_Operation int32
const (
	WatchResponse_OPERATION_UNSPECIFIED WatchResponse_Operation = 0
	WatchResponse_OPERATION_UPSERT      WatchResponse_Operation = 1
	WatchResponse_OPERATION_DELETE      WatchResponse_Operation = 2
)

func (WatchResponse_Operation) Descriptor

func (WatchResponse_Operation) Enum

func (WatchResponse_Operation) EnumDescriptor deprecated

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

Deprecated: Use WatchResponse_Operation.Descriptor instead.

func (WatchResponse_Operation) Number

func (WatchResponse_Operation) String

func (x WatchResponse_Operation) String() string

func (WatchResponse_Operation) Type

type WriteRequest

type WriteRequest struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetResource

func (x *WriteRequest) GetResource() *Resource

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

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

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

func (*WriteRequest) Validate

func (m *WriteRequest) Validate() error

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

func (m *WriteRequest) ValidateAll() error

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

type WriteRequestMultiError

type WriteRequestMultiError []error

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

func (WriteRequestMultiError) AllErrors

func (m WriteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WriteRequestMultiError) Error

func (m WriteRequestMultiError) Error() string

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

type WriteRequestValidationError

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

WriteRequestValidationError is the validation error returned by WriteRequest.Validate if the designated constraints aren't met.

func (WriteRequestValidationError) Cause

Cause function returns cause value.

func (WriteRequestValidationError) Error

Error satisfies the builtin error interface

func (WriteRequestValidationError) ErrorName

func (e WriteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (WriteRequestValidationError) Field

Field function returns field value.

func (WriteRequestValidationError) Key

Key function returns key value.

func (WriteRequestValidationError) Reason

Reason function returns reason value.

type WriteResponse

type WriteResponse struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) GetResource

func (x *WriteResponse) GetResource() *Resource

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

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

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

func (*WriteResponse) Validate

func (m *WriteResponse) Validate() error

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

func (m *WriteResponse) ValidateAll() error

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

type WriteResponseMultiError

type WriteResponseMultiError []error

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

func (WriteResponseMultiError) AllErrors

func (m WriteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WriteResponseMultiError) Error

func (m WriteResponseMultiError) Error() string

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

type WriteResponseValidationError

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

WriteResponseValidationError is the validation error returned by WriteResponse.Validate if the designated constraints aren't met.

func (WriteResponseValidationError) Cause

Cause function returns cause value.

func (WriteResponseValidationError) Error

Error satisfies the builtin error interface

func (WriteResponseValidationError) ErrorName

func (e WriteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (WriteResponseValidationError) Field

Field function returns field value.

func (WriteResponseValidationError) Key

Key function returns key value.

func (WriteResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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