schema

package
v0.0.0-...-3b83b35 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "STRING",
	}
	Type_value = map[string]int32{
		"UNSPECIFIED": 0,
		"STRING":      1,
	}
)

Enum value maps for Type.

View Source
var File_schema_resourcedefinition_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Methods

type Methods struct {
	Create *Methods_CreateMethod `protobuf:"bytes,1,opt,name=create,proto3" json:"create,omitempty"`
	Read   *Methods_ReadMethod   `protobuf:"bytes,2,opt,name=read,proto3" json:"read,omitempty"`
	Update *Methods_UpdateMethod `protobuf:"bytes,3,opt,name=update,proto3" json:"update,omitempty"`
	Delete *Methods_DeleteMethod `protobuf:"bytes,4,opt,name=delete,proto3" json:"delete,omitempty"`
	List   *Methods_ListMethod   `protobuf:"bytes,5,opt,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Methods) Descriptor deprecated

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

Deprecated: Use Methods.ProtoReflect.Descriptor instead.

func (*Methods) GetCreate

func (x *Methods) GetCreate() *Methods_CreateMethod

func (*Methods) GetDelete

func (x *Methods) GetDelete() *Methods_DeleteMethod

func (*Methods) GetList

func (x *Methods) GetList() *Methods_ListMethod

func (*Methods) GetRead

func (x *Methods) GetRead() *Methods_ReadMethod

func (*Methods) GetUpdate

func (x *Methods) GetUpdate() *Methods_UpdateMethod

func (*Methods) ProtoMessage

func (*Methods) ProtoMessage()

func (*Methods) ProtoReflect

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

func (*Methods) Reset

func (x *Methods) Reset()

func (*Methods) String

func (x *Methods) String() string

type Methods_CreateMethod

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

func (*Methods_CreateMethod) Descriptor deprecated

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

Deprecated: Use Methods_CreateMethod.ProtoReflect.Descriptor instead.

func (*Methods_CreateMethod) ProtoMessage

func (*Methods_CreateMethod) ProtoMessage()

func (*Methods_CreateMethod) ProtoReflect

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

func (*Methods_CreateMethod) Reset

func (x *Methods_CreateMethod) Reset()

func (*Methods_CreateMethod) String

func (x *Methods_CreateMethod) String() string

type Methods_DeleteMethod

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

func (*Methods_DeleteMethod) Descriptor deprecated

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

Deprecated: Use Methods_DeleteMethod.ProtoReflect.Descriptor instead.

func (*Methods_DeleteMethod) ProtoMessage

func (*Methods_DeleteMethod) ProtoMessage()

func (*Methods_DeleteMethod) ProtoReflect

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

func (*Methods_DeleteMethod) Reset

func (x *Methods_DeleteMethod) Reset()

func (*Methods_DeleteMethod) String

func (x *Methods_DeleteMethod) String() string

type Methods_ListMethod

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

func (*Methods_ListMethod) Descriptor deprecated

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

Deprecated: Use Methods_ListMethod.ProtoReflect.Descriptor instead.

func (*Methods_ListMethod) ProtoMessage

func (*Methods_ListMethod) ProtoMessage()

func (*Methods_ListMethod) ProtoReflect

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

func (*Methods_ListMethod) Reset

func (x *Methods_ListMethod) Reset()

func (*Methods_ListMethod) String

func (x *Methods_ListMethod) String() string

type Methods_ReadMethod

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

func (*Methods_ReadMethod) Descriptor deprecated

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

Deprecated: Use Methods_ReadMethod.ProtoReflect.Descriptor instead.

func (*Methods_ReadMethod) ProtoMessage

func (*Methods_ReadMethod) ProtoMessage()

func (*Methods_ReadMethod) ProtoReflect

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

func (*Methods_ReadMethod) Reset

func (x *Methods_ReadMethod) Reset()

func (*Methods_ReadMethod) String

func (x *Methods_ReadMethod) String() string

type Methods_UpdateMethod

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

func (*Methods_UpdateMethod) Descriptor deprecated

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

Deprecated: Use Methods_UpdateMethod.ProtoReflect.Descriptor instead.

func (*Methods_UpdateMethod) ProtoMessage

func (*Methods_UpdateMethod) ProtoMessage()

func (*Methods_UpdateMethod) ProtoReflect

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

func (*Methods_UpdateMethod) Reset

func (x *Methods_UpdateMethod) Reset()

func (*Methods_UpdateMethod) String

func (x *Methods_UpdateMethod) String() string

type Property

type Property struct {
	Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=Type" json:"type,omitempty"`
	// field number used for protobuf or other systems where fields must
	// be explicitly enumerated.
	Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetNumber

func (x *Property) GetNumber() int32

func (*Property) GetType

func (x *Property) GetType() Type

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

type Resource

type Resource struct {

	// The type of the resource. Used to programmatically
	// refer to and identify the resource.
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// The plural of the resource. Used in documentation.
	Plural string `protobuf:"bytes,2,opt,name=plural,proto3" json:"plural,omitempty"`
	// The list of parent resources, referred to via the kind.
	Parents []string `protobuf:"bytes,3,rep,name=parents,proto3" json:"parents,omitempty"`
	// Properties
	Properties map[string]*Property `` /* 161-byte string literal not displayed */
	// method support
	Methods *Methods `protobuf:"bytes,5,opt,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetKind

func (x *Resource) GetKind() string

func (*Resource) GetMethods

func (x *Resource) GetMethods() *Methods

func (*Resource) GetParents

func (x *Resource) GetParents() []string

func (*Resource) GetPlural

func (x *Resource) GetPlural() string

func (*Resource) GetProperties

func (x *Resource) GetProperties() map[string]*Property

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

type Service

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

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetResources

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

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type Type

type Type int32
const (
	Type_UNSPECIFIED Type = 0
	Type_STRING      Type = 1
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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