providerv1

package
v0.0.0-...-c2bc880 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Provider_CreateResource_FullMethodName = "/alchematik.athanor.provider.v1.Provider/CreateResource"
	Provider_DeleteResource_FullMethodName = "/alchematik.athanor.provider.v1.Provider/DeleteResource"
	Provider_GetResource_FullMethodName    = "/alchematik.athanor.provider.v1.Provider/GetResource"
	Provider_UpdateResource_FullMethodName = "/alchematik.athanor.provider.v1.Provider/UpdateResource"
)

Variables

View Source
var (
	Operation_name = map[int32]string{
		0: "OPERATION_EMPTY",
		1: "OPERATION_UPDATE",
		2: "OPERATION_DELETE",
	}
	Operation_value = map[string]int32{
		"OPERATION_EMPTY":  0,
		"OPERATION_UPDATE": 1,
		"OPERATION_DELETE": 2,
	}
)

Enum value maps for Operation.

View Source
var File_proto_provider_v1_provider_proto protoreflect.FileDescriptor
View Source
var File_proto_provider_v1_schema_proto protoreflect.FileDescriptor
View Source
var Provider_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "alchematik.athanor.provider.v1.Provider",
	HandlerType: (*ProviderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateResource",
			Handler:    _Provider_CreateResource_Handler,
		},
		{
			MethodName: "DeleteResource",
			Handler:    _Provider_DeleteResource_Handler,
		},
		{
			MethodName: "GetResource",
			Handler:    _Provider_GetResource_Handler,
		},
		{
			MethodName: "UpdateResource",
			Handler:    _Provider_UpdateResource_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/provider/v1/provider.proto",
}

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

Functions

func RegisterProviderServer

func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)

Types

type BoolSchema

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

func (*BoolSchema) Descriptor deprecated

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

Deprecated: Use BoolSchema.ProtoReflect.Descriptor instead.

func (*BoolSchema) MarshalJSON

func (msg *BoolSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*BoolSchema) ProtoMessage

func (*BoolSchema) ProtoMessage()

func (*BoolSchema) ProtoReflect

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

func (*BoolSchema) Reset

func (x *BoolSchema) Reset()

func (*BoolSchema) String

func (x *BoolSchema) String() string

func (*BoolSchema) UnmarshalJSON

func (msg *BoolSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type CreateResourceRequest

type CreateResourceRequest struct {
	Identifier *Value `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Config     *Value `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResourceRequest) Descriptor deprecated

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

Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.

func (*CreateResourceRequest) GetConfig

func (x *CreateResourceRequest) GetConfig() *Value

func (*CreateResourceRequest) GetIdentifier

func (x *CreateResourceRequest) GetIdentifier() *Value

func (*CreateResourceRequest) MarshalJSON

func (msg *CreateResourceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CreateResourceRequest) ProtoMessage

func (*CreateResourceRequest) ProtoMessage()

func (*CreateResourceRequest) ProtoReflect

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

func (*CreateResourceRequest) Reset

func (x *CreateResourceRequest) Reset()

func (*CreateResourceRequest) String

func (x *CreateResourceRequest) String() string

func (*CreateResourceRequest) UnmarshalJSON

func (msg *CreateResourceRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type CreateResourceResponse

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

func (*CreateResourceResponse) Descriptor deprecated

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

Deprecated: Use CreateResourceResponse.ProtoReflect.Descriptor instead.

func (*CreateResourceResponse) GetResource

func (x *CreateResourceResponse) GetResource() *Resource

func (*CreateResourceResponse) MarshalJSON

func (msg *CreateResourceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*CreateResourceResponse) ProtoMessage

func (*CreateResourceResponse) ProtoMessage()

func (*CreateResourceResponse) ProtoReflect

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

func (*CreateResourceResponse) Reset

func (x *CreateResourceResponse) Reset()

func (*CreateResourceResponse) String

func (x *CreateResourceResponse) String() string

func (*CreateResourceResponse) UnmarshalJSON

func (msg *CreateResourceResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type DeleteResourceRequest

type DeleteResourceRequest struct {
	Identifier *Value `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResourceRequest) Descriptor deprecated

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

Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.

func (*DeleteResourceRequest) GetIdentifier

func (x *DeleteResourceRequest) GetIdentifier() *Value

func (*DeleteResourceRequest) MarshalJSON

func (msg *DeleteResourceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*DeleteResourceRequest) ProtoMessage

func (*DeleteResourceRequest) ProtoMessage()

func (*DeleteResourceRequest) ProtoReflect

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

func (*DeleteResourceRequest) Reset

func (x *DeleteResourceRequest) Reset()

func (*DeleteResourceRequest) String

func (x *DeleteResourceRequest) String() string

func (*DeleteResourceRequest) UnmarshalJSON

func (msg *DeleteResourceRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type DeleteResourceResponse

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

func (*DeleteResourceResponse) Descriptor deprecated

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

Deprecated: Use DeleteResourceResponse.ProtoReflect.Descriptor instead.

func (*DeleteResourceResponse) MarshalJSON

func (msg *DeleteResourceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*DeleteResourceResponse) ProtoMessage

func (*DeleteResourceResponse) ProtoMessage()

func (*DeleteResourceResponse) ProtoReflect

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

func (*DeleteResourceResponse) Reset

func (x *DeleteResourceResponse) Reset()

func (*DeleteResourceResponse) String

func (x *DeleteResourceResponse) String() string

func (*DeleteResourceResponse) UnmarshalJSON

func (msg *DeleteResourceResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Field

type Field struct {
	Name      string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SubFields []*Field  `protobuf:"bytes,2,rep,name=sub_fields,json=subFields,proto3" json:"sub_fields,omitempty"`
	Operation Operation `protobuf:"varint,3,opt,name=operation,proto3,enum=alchematik.athanor.provider.v1.Operation" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetOperation

func (x *Field) GetOperation() Operation

func (*Field) GetSubFields

func (x *Field) GetSubFields() []*Field

func (*Field) MarshalJSON

func (msg *Field) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

func (*Field) UnmarshalJSON

func (msg *Field) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type FieldSchema

type FieldSchema struct {

	// Types that are assignable to Type:
	//
	//	*FieldSchema_StringSchema
	//	*FieldSchema_BoolSchema
	//	*FieldSchema_MapSchema
	//	*FieldSchema_StructSchema
	//	*FieldSchema_FileSchema
	//	*FieldSchema_IdentifierSchema
	//	*FieldSchema_ListSchema
	//	*FieldSchema_ImmutableSchema
	Type isFieldSchema_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*FieldSchema) Descriptor deprecated

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

Deprecated: Use FieldSchema.ProtoReflect.Descriptor instead.

func (*FieldSchema) GetBoolSchema

func (x *FieldSchema) GetBoolSchema() *BoolSchema

func (*FieldSchema) GetFileSchema

func (x *FieldSchema) GetFileSchema() *FileSchema

func (*FieldSchema) GetIdentifierSchema

func (x *FieldSchema) GetIdentifierSchema() *IdentifierSchema

func (*FieldSchema) GetImmutableSchema

func (x *FieldSchema) GetImmutableSchema() *ImmutableSchema

func (*FieldSchema) GetListSchema

func (x *FieldSchema) GetListSchema() *ListSchema

func (*FieldSchema) GetMapSchema

func (x *FieldSchema) GetMapSchema() *MapSchema

func (*FieldSchema) GetStringSchema

func (x *FieldSchema) GetStringSchema() *StringSchema

func (*FieldSchema) GetStructSchema

func (x *FieldSchema) GetStructSchema() *StructSchema

func (*FieldSchema) GetType

func (m *FieldSchema) GetType() isFieldSchema_Type

func (*FieldSchema) MarshalJSON

func (msg *FieldSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*FieldSchema) ProtoMessage

func (*FieldSchema) ProtoMessage()

func (*FieldSchema) ProtoReflect

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

func (*FieldSchema) Reset

func (x *FieldSchema) Reset()

func (*FieldSchema) String

func (x *FieldSchema) String() string

func (*FieldSchema) UnmarshalJSON

func (msg *FieldSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type FieldSchema_BoolSchema

type FieldSchema_BoolSchema struct {
	BoolSchema *BoolSchema `protobuf:"bytes,2,opt,name=bool_schema,json=boolSchema,proto3,oneof"`
}

type FieldSchema_FileSchema

type FieldSchema_FileSchema struct {
	FileSchema *FileSchema `protobuf:"bytes,5,opt,name=file_schema,json=fileSchema,proto3,oneof"`
}

type FieldSchema_IdentifierSchema

type FieldSchema_IdentifierSchema struct {
	IdentifierSchema *IdentifierSchema `protobuf:"bytes,6,opt,name=identifier_schema,json=identifierSchema,proto3,oneof"`
}

type FieldSchema_ImmutableSchema

type FieldSchema_ImmutableSchema struct {
	ImmutableSchema *ImmutableSchema `protobuf:"bytes,8,opt,name=immutable_schema,json=immutableSchema,proto3,oneof"`
}

type FieldSchema_ListSchema

type FieldSchema_ListSchema struct {
	ListSchema *ListSchema `protobuf:"bytes,7,opt,name=list_schema,json=listSchema,proto3,oneof"`
}

type FieldSchema_MapSchema

type FieldSchema_MapSchema struct {
	MapSchema *MapSchema `protobuf:"bytes,3,opt,name=map_schema,json=mapSchema,proto3,oneof"`
}

type FieldSchema_StringSchema

type FieldSchema_StringSchema struct {
	StringSchema *StringSchema `protobuf:"bytes,1,opt,name=string_schema,json=stringSchema,proto3,oneof"`
}

type FieldSchema_StructSchema

type FieldSchema_StructSchema struct {
	StructSchema *StructSchema `protobuf:"bytes,4,opt,name=struct_schema,json=structSchema,proto3,oneof"`
}

type FileSchema

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

func (*FileSchema) Descriptor deprecated

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

Deprecated: Use FileSchema.ProtoReflect.Descriptor instead.

func (*FileSchema) MarshalJSON

func (msg *FileSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*FileSchema) ProtoMessage

func (*FileSchema) ProtoMessage()

func (*FileSchema) ProtoReflect

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

func (*FileSchema) Reset

func (x *FileSchema) Reset()

func (*FileSchema) String

func (x *FileSchema) String() string

func (*FileSchema) UnmarshalJSON

func (msg *FileSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type FileValue

type FileValue struct {
	Path     string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Checksum string `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*FileValue) Descriptor deprecated

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

Deprecated: Use FileValue.ProtoReflect.Descriptor instead.

func (*FileValue) GetChecksum

func (x *FileValue) GetChecksum() string

func (*FileValue) GetPath

func (x *FileValue) GetPath() string

func (*FileValue) MarshalJSON

func (msg *FileValue) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*FileValue) ProtoMessage

func (*FileValue) ProtoMessage()

func (*FileValue) ProtoReflect

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

func (*FileValue) Reset

func (x *FileValue) Reset()

func (*FileValue) String

func (x *FileValue) String() string

func (*FileValue) UnmarshalJSON

func (msg *FileValue) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type GetResourceRequest

type GetResourceRequest struct {
	Identifier *Value `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResourceRequest) Descriptor deprecated

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

Deprecated: Use GetResourceRequest.ProtoReflect.Descriptor instead.

func (*GetResourceRequest) GetIdentifier

func (x *GetResourceRequest) GetIdentifier() *Value

func (*GetResourceRequest) MarshalJSON

func (msg *GetResourceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*GetResourceRequest) ProtoMessage

func (*GetResourceRequest) ProtoMessage()

func (*GetResourceRequest) ProtoReflect

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

func (*GetResourceRequest) Reset

func (x *GetResourceRequest) Reset()

func (*GetResourceRequest) String

func (x *GetResourceRequest) String() string

func (*GetResourceRequest) UnmarshalJSON

func (msg *GetResourceRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type GetResourceResponse

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

func (*GetResourceResponse) Descriptor deprecated

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

Deprecated: Use GetResourceResponse.ProtoReflect.Descriptor instead.

func (*GetResourceResponse) GetResource

func (x *GetResourceResponse) GetResource() *Resource

func (*GetResourceResponse) MarshalJSON

func (msg *GetResourceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*GetResourceResponse) ProtoMessage

func (*GetResourceResponse) ProtoMessage()

func (*GetResourceResponse) ProtoReflect

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

func (*GetResourceResponse) Reset

func (x *GetResourceResponse) Reset()

func (*GetResourceResponse) String

func (x *GetResourceResponse) String() string

func (*GetResourceResponse) UnmarshalJSON

func (msg *GetResourceResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Identifier

type Identifier struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Identifier) Descriptor deprecated

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

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetType

func (x *Identifier) GetType() string

func (*Identifier) GetValue

func (x *Identifier) GetValue() *Value

func (*Identifier) MarshalJSON

func (msg *Identifier) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

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

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

func (*Identifier) UnmarshalJSON

func (msg *Identifier) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type IdentifierSchema

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

func (*IdentifierSchema) Descriptor deprecated

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

Deprecated: Use IdentifierSchema.ProtoReflect.Descriptor instead.

func (*IdentifierSchema) MarshalJSON

func (msg *IdentifierSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*IdentifierSchema) ProtoMessage

func (*IdentifierSchema) ProtoMessage()

func (*IdentifierSchema) ProtoReflect

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

func (*IdentifierSchema) Reset

func (x *IdentifierSchema) Reset()

func (*IdentifierSchema) String

func (x *IdentifierSchema) String() string

func (*IdentifierSchema) UnmarshalJSON

func (msg *IdentifierSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Immutable

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

func (*Immutable) Descriptor deprecated

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

Deprecated: Use Immutable.ProtoReflect.Descriptor instead.

func (*Immutable) GetValue

func (x *Immutable) GetValue() *Value

func (*Immutable) MarshalJSON

func (msg *Immutable) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Immutable) ProtoMessage

func (*Immutable) ProtoMessage()

func (*Immutable) ProtoReflect

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

func (*Immutable) Reset

func (x *Immutable) Reset()

func (*Immutable) String

func (x *Immutable) String() string

func (*Immutable) UnmarshalJSON

func (msg *Immutable) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ImmutableSchema

type ImmutableSchema struct {
	Value *FieldSchema `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ImmutableSchema) Descriptor deprecated

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

Deprecated: Use ImmutableSchema.ProtoReflect.Descriptor instead.

func (*ImmutableSchema) GetValue

func (x *ImmutableSchema) GetValue() *FieldSchema

func (*ImmutableSchema) MarshalJSON

func (msg *ImmutableSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ImmutableSchema) ProtoMessage

func (*ImmutableSchema) ProtoMessage()

func (*ImmutableSchema) ProtoReflect

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

func (*ImmutableSchema) Reset

func (x *ImmutableSchema) Reset()

func (*ImmutableSchema) String

func (x *ImmutableSchema) String() string

func (*ImmutableSchema) UnmarshalJSON

func (msg *ImmutableSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ListSchema

type ListSchema struct {
	Element *FieldSchema `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSchema) Descriptor deprecated

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

Deprecated: Use ListSchema.ProtoReflect.Descriptor instead.

func (*ListSchema) GetElement

func (x *ListSchema) GetElement() *FieldSchema

func (*ListSchema) MarshalJSON

func (msg *ListSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ListSchema) ProtoMessage

func (*ListSchema) ProtoMessage()

func (*ListSchema) ProtoReflect

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

func (*ListSchema) Reset

func (x *ListSchema) Reset()

func (*ListSchema) String

func (x *ListSchema) String() string

func (*ListSchema) UnmarshalJSON

func (msg *ListSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ListValue

type ListValue struct {
	Elements []*Value `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*ListValue) Descriptor deprecated

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

Deprecated: Use ListValue.ProtoReflect.Descriptor instead.

func (*ListValue) GetElements

func (x *ListValue) GetElements() []*Value

func (*ListValue) MarshalJSON

func (msg *ListValue) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ListValue) ProtoMessage

func (*ListValue) ProtoMessage()

func (*ListValue) ProtoReflect

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

func (*ListValue) Reset

func (x *ListValue) Reset()

func (*ListValue) String

func (x *ListValue) String() string

func (*ListValue) UnmarshalJSON

func (msg *ListValue) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type MapSchema

type MapSchema struct {
	Value *FieldSchema `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MapSchema) Descriptor deprecated

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

Deprecated: Use MapSchema.ProtoReflect.Descriptor instead.

func (*MapSchema) GetValue

func (x *MapSchema) GetValue() *FieldSchema

func (*MapSchema) MarshalJSON

func (msg *MapSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*MapSchema) ProtoMessage

func (*MapSchema) ProtoMessage()

func (*MapSchema) ProtoReflect

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

func (*MapSchema) Reset

func (x *MapSchema) Reset()

func (*MapSchema) String

func (x *MapSchema) String() string

func (*MapSchema) UnmarshalJSON

func (msg *MapSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type MapValue

type MapValue struct {
	Entries map[string]*Value `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MapValue) Descriptor deprecated

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

Deprecated: Use MapValue.ProtoReflect.Descriptor instead.

func (*MapValue) GetEntries

func (x *MapValue) GetEntries() map[string]*Value

func (*MapValue) MarshalJSON

func (msg *MapValue) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*MapValue) ProtoMessage

func (*MapValue) ProtoMessage()

func (*MapValue) ProtoReflect

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

func (*MapValue) Reset

func (x *MapValue) Reset()

func (*MapValue) String

func (x *MapValue) String() string

func (*MapValue) UnmarshalJSON

func (msg *MapValue) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Nil

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

func (*Nil) Descriptor deprecated

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

Deprecated: Use Nil.ProtoReflect.Descriptor instead.

func (*Nil) MarshalJSON

func (msg *Nil) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Nil) ProtoMessage

func (*Nil) ProtoMessage()

func (*Nil) ProtoReflect

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

func (*Nil) Reset

func (x *Nil) Reset()

func (*Nil) String

func (x *Nil) String() string

func (*Nil) UnmarshalJSON

func (msg *Nil) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Operation

type Operation int32
const (
	Operation_OPERATION_EMPTY  Operation = 0
	Operation_OPERATION_UPDATE Operation = 1
	Operation_OPERATION_DELETE Operation = 2
)

func (Operation) Descriptor

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated

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

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String

func (x Operation) String() string

func (Operation) Type

type ProviderClient

type ProviderClient interface {
	CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*CreateResourceResponse, error)
	DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*DeleteResourceResponse, error)
	GetResource(ctx context.Context, in *GetResourceRequest, opts ...grpc.CallOption) (*GetResourceResponse, error)
	UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...grpc.CallOption) (*UpdateResourceResponse, error)
}

ProviderClient is the client API for Provider 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.

func NewProviderClient

func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient

type ProviderServer

ProviderServer is the server API for Provider service. All implementations should embed UnimplementedProviderServer for forward compatibility

type Resource

type Resource struct {
	Identifier *Value `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Config     *Value `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Attrs      *Value `protobuf:"bytes,3,opt,name=attrs,proto3" json:"attrs,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetAttrs

func (x *Resource) GetAttrs() *Value

func (*Resource) GetConfig

func (x *Resource) GetConfig() *Value

func (*Resource) GetIdentifier

func (x *Resource) GetIdentifier() *Value

func (*Resource) MarshalJSON

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

MarshalJSON implements json.Marshaler

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 (msg *Resource) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type ResourceSchema

type ResourceSchema struct {
	Type       string       `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Identifier *FieldSchema `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Config     *FieldSchema `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Attrs      *FieldSchema `protobuf:"bytes,4,opt,name=attrs,proto3" json:"attrs,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceSchema) Descriptor deprecated

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

Deprecated: Use ResourceSchema.ProtoReflect.Descriptor instead.

func (*ResourceSchema) GetAttrs

func (x *ResourceSchema) GetAttrs() *FieldSchema

func (*ResourceSchema) GetConfig

func (x *ResourceSchema) GetConfig() *FieldSchema

func (*ResourceSchema) GetIdentifier

func (x *ResourceSchema) GetIdentifier() *FieldSchema

func (*ResourceSchema) GetType

func (x *ResourceSchema) GetType() string

func (*ResourceSchema) MarshalJSON

func (msg *ResourceSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ResourceSchema) ProtoMessage

func (*ResourceSchema) ProtoMessage()

func (*ResourceSchema) ProtoReflect

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

func (*ResourceSchema) Reset

func (x *ResourceSchema) Reset()

func (*ResourceSchema) String

func (x *ResourceSchema) String() string

func (*ResourceSchema) UnmarshalJSON

func (msg *ResourceSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Schema

type Schema struct {
	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version   string            `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Resources []*ResourceSchema `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*Schema) Descriptor deprecated

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

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetName

func (x *Schema) GetName() string

func (*Schema) GetResources

func (x *Schema) GetResources() []*ResourceSchema

func (*Schema) GetVersion

func (x *Schema) GetVersion() string

func (*Schema) MarshalJSON

func (msg *Schema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

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

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

func (*Schema) UnmarshalJSON

func (msg *Schema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type State

type State struct {

	// Types that are assignable to Type:
	//
	//	*State_Resource
	Type isState_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetResource

func (x *State) GetResource() *Resource

func (*State) GetType

func (m *State) GetType() isState_Type

func (*State) MarshalJSON

func (msg *State) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

func (*State) UnmarshalJSON

func (msg *State) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type State_Resource

type State_Resource struct {
	Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3,oneof"`
}

type StringSchema

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

func (*StringSchema) Descriptor deprecated

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

Deprecated: Use StringSchema.ProtoReflect.Descriptor instead.

func (*StringSchema) MarshalJSON

func (msg *StringSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*StringSchema) ProtoMessage

func (*StringSchema) ProtoMessage()

func (*StringSchema) ProtoReflect

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

func (*StringSchema) Reset

func (x *StringSchema) Reset()

func (*StringSchema) String

func (x *StringSchema) String() string

func (*StringSchema) UnmarshalJSON

func (msg *StringSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type StructSchema

type StructSchema struct {
	Name   string                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Fields map[string]*FieldSchema `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StructSchema) Descriptor deprecated

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

Deprecated: Use StructSchema.ProtoReflect.Descriptor instead.

func (*StructSchema) GetFields

func (x *StructSchema) GetFields() map[string]*FieldSchema

func (*StructSchema) GetName

func (x *StructSchema) GetName() string

func (*StructSchema) MarshalJSON

func (msg *StructSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*StructSchema) ProtoMessage

func (*StructSchema) ProtoMessage()

func (*StructSchema) ProtoReflect

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

func (*StructSchema) Reset

func (x *StructSchema) Reset()

func (*StructSchema) String

func (x *StructSchema) String() string

func (*StructSchema) UnmarshalJSON

func (msg *StructSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type UnimplementedProviderServer

type UnimplementedProviderServer struct {
}

UnimplementedProviderServer should be embedded to have forward compatible implementations.

func (UnimplementedProviderServer) CreateResource

func (UnimplementedProviderServer) DeleteResource

func (UnimplementedProviderServer) GetResource

func (UnimplementedProviderServer) UpdateResource

type UnsafeProviderServer

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

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

type UpdateResourceRequest

type UpdateResourceRequest struct {
	Identifier *Value   `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Config     *Value   `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Mask       []*Field `protobuf:"bytes,3,rep,name=mask,proto3" json:"mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResourceRequest) Descriptor deprecated

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

Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourceRequest) GetConfig

func (x *UpdateResourceRequest) GetConfig() *Value

func (*UpdateResourceRequest) GetIdentifier

func (x *UpdateResourceRequest) GetIdentifier() *Value

func (*UpdateResourceRequest) GetMask

func (x *UpdateResourceRequest) GetMask() []*Field

func (*UpdateResourceRequest) MarshalJSON

func (msg *UpdateResourceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdateResourceRequest) ProtoMessage

func (*UpdateResourceRequest) ProtoMessage()

func (*UpdateResourceRequest) ProtoReflect

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

func (*UpdateResourceRequest) Reset

func (x *UpdateResourceRequest) Reset()

func (*UpdateResourceRequest) String

func (x *UpdateResourceRequest) String() string

func (*UpdateResourceRequest) UnmarshalJSON

func (msg *UpdateResourceRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type UpdateResourceResponse

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

func (*UpdateResourceResponse) Descriptor deprecated

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

Deprecated: Use UpdateResourceResponse.ProtoReflect.Descriptor instead.

func (*UpdateResourceResponse) GetResource

func (x *UpdateResourceResponse) GetResource() *Resource

func (*UpdateResourceResponse) MarshalJSON

func (msg *UpdateResourceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*UpdateResourceResponse) ProtoMessage

func (*UpdateResourceResponse) ProtoMessage()

func (*UpdateResourceResponse) ProtoReflect

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

func (*UpdateResourceResponse) Reset

func (x *UpdateResourceResponse) Reset()

func (*UpdateResourceResponse) String

func (x *UpdateResourceResponse) String() string

func (*UpdateResourceResponse) UnmarshalJSON

func (msg *UpdateResourceResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Value

type Value struct {

	// Types that are assignable to Type:
	//
	//	*Value_StringValue
	//	*Value_IntValue
	//	*Value_FloatValue
	//	*Value_BoolValue
	//	*Value_List
	//	*Value_Map
	//	*Value_Identifier
	//	*Value_File
	//	*Value_Immutable
	//	*Value_Nil
	Type isValue_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetFile

func (x *Value) GetFile() *FileValue

func (*Value) GetFloatValue

func (x *Value) GetFloatValue() float32

func (*Value) GetIdentifier

func (x *Value) GetIdentifier() *Identifier

func (*Value) GetImmutable

func (x *Value) GetImmutable() *Immutable

func (*Value) GetIntValue

func (x *Value) GetIntValue() uint32

func (*Value) GetList

func (x *Value) GetList() *ListValue

func (*Value) GetMap

func (x *Value) GetMap() *MapValue

func (*Value) GetNil

func (x *Value) GetNil() *Nil

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetType

func (m *Value) GetType() isValue_Type

func (*Value) MarshalJSON

func (msg *Value) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

func (*Value) UnmarshalJSON

func (msg *Value) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

type Value_BoolValue

type Value_BoolValue struct {
	BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_File

type Value_File struct {
	File *FileValue `protobuf:"bytes,8,opt,name=file,proto3,oneof"`
}

type Value_FloatValue

type Value_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,3,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type Value_Identifier

type Value_Identifier struct {
	Identifier *Identifier `protobuf:"bytes,7,opt,name=identifier,proto3,oneof"`
}

type Value_Immutable

type Value_Immutable struct {
	Immutable *Immutable `protobuf:"bytes,9,opt,name=immutable,proto3,oneof"`
}

type Value_IntValue

type Value_IntValue struct {
	IntValue uint32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Value_List

type Value_List struct {
	List *ListValue `protobuf:"bytes,5,opt,name=list,proto3,oneof"`
}

type Value_Map

type Value_Map struct {
	Map *MapValue `protobuf:"bytes,6,opt,name=map,proto3,oneof"`
}

type Value_Nil

type Value_Nil struct {
	Nil *Nil `protobuf:"bytes,10,opt,name=nil,proto3,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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