configmodel

package
v0.7.32 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRegistry        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRegistry          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRegistry = fmt.Errorf("proto: unexpected end of group")
)
View Source
var GetStateMode_name = map[int32]string{
	0: "NONE",
	1: "OP_STATE",
	2: "EXPLICIT_RO_PATHS",
	3: "EXPLICIT_RO_PATHS_EXPAND_WILDCARDS",
}
View Source
var GetStateMode_value = map[string]int32{
	"NONE":                               0,
	"OP_STATE":                           1,
	"EXPLICIT_RO_PATHS":                  2,
	"EXPLICIT_RO_PATHS_EXPAND_WILDCARDS": 3,
}
View Source
var RegistryServiceClientFactory = func(cc *grpc.ClientConn) ConfigModelRegistryServiceClient {
	return NewConfigModelRegistryServiceClient(cc)
}

RegistryServiceClientFactory : Default ConfigModelRegistryServiceClient creation - allows it to be mocked

Functions

func RegisterConfigModelRegistryServiceServer

func RegisterConfigModelRegistryServiceServer(s *grpc.Server, srv ConfigModelRegistryServiceServer)

Types

type ConfigModel

type ConfigModel 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"`
	Modules      []*ConfigModule   `protobuf:"bytes,3,rep,name=modules,proto3" json:"modules,omitempty"`
	Files        map[string]string `` /* 151-byte string literal not displayed */
	GetStateMode GetStateMode      `` /* 135-byte string literal not displayed */
}

func (*ConfigModel) Descriptor

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

func (*ConfigModel) GetFiles

func (m *ConfigModel) GetFiles() map[string]string

func (*ConfigModel) GetGetStateMode added in v0.7.16

func (m *ConfigModel) GetGetStateMode() GetStateMode

func (*ConfigModel) GetModules

func (m *ConfigModel) GetModules() []*ConfigModule

func (*ConfigModel) GetName

func (m *ConfigModel) GetName() string

func (*ConfigModel) GetVersion

func (m *ConfigModel) GetVersion() string

func (*ConfigModel) Marshal

func (m *ConfigModel) Marshal() (dAtA []byte, err error)

func (*ConfigModel) MarshalTo

func (m *ConfigModel) MarshalTo(dAtA []byte) (int, error)

func (*ConfigModel) MarshalToSizedBuffer

func (m *ConfigModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigModel) ProtoMessage

func (*ConfigModel) ProtoMessage()

func (*ConfigModel) Reset

func (m *ConfigModel) Reset()

func (*ConfigModel) Size

func (m *ConfigModel) Size() (n int)

func (*ConfigModel) String

func (m *ConfigModel) String() string

func (*ConfigModel) Unmarshal

func (m *ConfigModel) Unmarshal(dAtA []byte) error

func (*ConfigModel) XXX_DiscardUnknown

func (m *ConfigModel) XXX_DiscardUnknown()

func (*ConfigModel) XXX_Marshal

func (m *ConfigModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigModel) XXX_Merge

func (m *ConfigModel) XXX_Merge(src proto.Message)

func (*ConfigModel) XXX_Size

func (m *ConfigModel) XXX_Size() int

func (*ConfigModel) XXX_Unmarshal

func (m *ConfigModel) XXX_Unmarshal(b []byte) error

type ConfigModelRegistryServiceClient

type ConfigModelRegistryServiceClient interface {
	GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*GetModelResponse, error)
	ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
	PushModel(ctx context.Context, in *PushModelRequest, opts ...grpc.CallOption) (*PushModelResponse, error)
	DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error)
}

ConfigModelRegistryServiceClient is the client API for ConfigModelRegistryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func CreateConfigModelRegistryServiceClient

func CreateConfigModelRegistryServiceClient(cc *grpc.ClientConn) ConfigModelRegistryServiceClient

CreateConfigModelRegistryServiceClient creates and returns a new config admin client

func NewConfigModelRegistryServiceClient

func NewConfigModelRegistryServiceClient(cc *grpc.ClientConn) ConfigModelRegistryServiceClient

type ConfigModelRegistryServiceServer

type ConfigModelRegistryServiceServer interface {
	GetModel(context.Context, *GetModelRequest) (*GetModelResponse, error)
	ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
	PushModel(context.Context, *PushModelRequest) (*PushModelResponse, error)
	DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
}

ConfigModelRegistryServiceServer is the server API for ConfigModelRegistryService service.

type ConfigModule

type ConfigModule struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	File         string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	Revision     string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
	Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"`
}

func (*ConfigModule) Descriptor

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

func (*ConfigModule) GetFile

func (m *ConfigModule) GetFile() string

func (*ConfigModule) GetName

func (m *ConfigModule) GetName() string

func (*ConfigModule) GetOrganization

func (m *ConfigModule) GetOrganization() string

func (*ConfigModule) GetRevision

func (m *ConfigModule) GetRevision() string

func (*ConfigModule) Marshal

func (m *ConfigModule) Marshal() (dAtA []byte, err error)

func (*ConfigModule) MarshalTo

func (m *ConfigModule) MarshalTo(dAtA []byte) (int, error)

func (*ConfigModule) MarshalToSizedBuffer

func (m *ConfigModule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigModule) ProtoMessage

func (*ConfigModule) ProtoMessage()

func (*ConfigModule) Reset

func (m *ConfigModule) Reset()

func (*ConfigModule) Size

func (m *ConfigModule) Size() (n int)

func (*ConfigModule) String

func (m *ConfigModule) String() string

func (*ConfigModule) Unmarshal

func (m *ConfigModule) Unmarshal(dAtA []byte) error

func (*ConfigModule) XXX_DiscardUnknown

func (m *ConfigModule) XXX_DiscardUnknown()

func (*ConfigModule) XXX_Marshal

func (m *ConfigModule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigModule) XXX_Merge

func (m *ConfigModule) XXX_Merge(src proto.Message)

func (*ConfigModule) XXX_Size

func (m *ConfigModule) XXX_Size() int

func (*ConfigModule) XXX_Unmarshal

func (m *ConfigModule) XXX_Unmarshal(b []byte) error

type DeleteModelRequest

type DeleteModelRequest 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"`
}

func (*DeleteModelRequest) Descriptor

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

func (*DeleteModelRequest) GetName

func (m *DeleteModelRequest) GetName() string

func (*DeleteModelRequest) GetVersion

func (m *DeleteModelRequest) GetVersion() string

func (*DeleteModelRequest) Marshal

func (m *DeleteModelRequest) Marshal() (dAtA []byte, err error)

func (*DeleteModelRequest) MarshalTo

func (m *DeleteModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteModelRequest) MarshalToSizedBuffer

func (m *DeleteModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteModelRequest) ProtoMessage

func (*DeleteModelRequest) ProtoMessage()

func (*DeleteModelRequest) Reset

func (m *DeleteModelRequest) Reset()

func (*DeleteModelRequest) Size

func (m *DeleteModelRequest) Size() (n int)

func (*DeleteModelRequest) String

func (m *DeleteModelRequest) String() string

func (*DeleteModelRequest) Unmarshal

func (m *DeleteModelRequest) Unmarshal(dAtA []byte) error

func (*DeleteModelRequest) XXX_DiscardUnknown

func (m *DeleteModelRequest) XXX_DiscardUnknown()

func (*DeleteModelRequest) XXX_Marshal

func (m *DeleteModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteModelRequest) XXX_Merge

func (m *DeleteModelRequest) XXX_Merge(src proto.Message)

func (*DeleteModelRequest) XXX_Size

func (m *DeleteModelRequest) XXX_Size() int

func (*DeleteModelRequest) XXX_Unmarshal

func (m *DeleteModelRequest) XXX_Unmarshal(b []byte) error

type DeleteModelResponse

type DeleteModelResponse struct {
}

func (*DeleteModelResponse) Descriptor

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

func (*DeleteModelResponse) Marshal

func (m *DeleteModelResponse) Marshal() (dAtA []byte, err error)

func (*DeleteModelResponse) MarshalTo

func (m *DeleteModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*DeleteModelResponse) MarshalToSizedBuffer

func (m *DeleteModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteModelResponse) ProtoMessage

func (*DeleteModelResponse) ProtoMessage()

func (*DeleteModelResponse) Reset

func (m *DeleteModelResponse) Reset()

func (*DeleteModelResponse) Size

func (m *DeleteModelResponse) Size() (n int)

func (*DeleteModelResponse) String

func (m *DeleteModelResponse) String() string

func (*DeleteModelResponse) Unmarshal

func (m *DeleteModelResponse) Unmarshal(dAtA []byte) error

func (*DeleteModelResponse) XXX_DiscardUnknown

func (m *DeleteModelResponse) XXX_DiscardUnknown()

func (*DeleteModelResponse) XXX_Marshal

func (m *DeleteModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteModelResponse) XXX_Merge

func (m *DeleteModelResponse) XXX_Merge(src proto.Message)

func (*DeleteModelResponse) XXX_Size

func (m *DeleteModelResponse) XXX_Size() int

func (*DeleteModelResponse) XXX_Unmarshal

func (m *DeleteModelResponse) XXX_Unmarshal(b []byte) error

type GetModelRequest

type GetModelRequest 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"`
}

func (*GetModelRequest) Descriptor

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

func (*GetModelRequest) GetName

func (m *GetModelRequest) GetName() string

func (*GetModelRequest) GetVersion

func (m *GetModelRequest) GetVersion() string

func (*GetModelRequest) Marshal

func (m *GetModelRequest) Marshal() (dAtA []byte, err error)

func (*GetModelRequest) MarshalTo

func (m *GetModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetModelRequest) MarshalToSizedBuffer

func (m *GetModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetModelRequest) ProtoMessage

func (*GetModelRequest) ProtoMessage()

func (*GetModelRequest) Reset

func (m *GetModelRequest) Reset()

func (*GetModelRequest) Size

func (m *GetModelRequest) Size() (n int)

func (*GetModelRequest) String

func (m *GetModelRequest) String() string

func (*GetModelRequest) Unmarshal

func (m *GetModelRequest) Unmarshal(dAtA []byte) error

func (*GetModelRequest) XXX_DiscardUnknown

func (m *GetModelRequest) XXX_DiscardUnknown()

func (*GetModelRequest) XXX_Marshal

func (m *GetModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetModelRequest) XXX_Merge

func (m *GetModelRequest) XXX_Merge(src proto.Message)

func (*GetModelRequest) XXX_Size

func (m *GetModelRequest) XXX_Size() int

func (*GetModelRequest) XXX_Unmarshal

func (m *GetModelRequest) XXX_Unmarshal(b []byte) error

type GetModelResponse

type GetModelResponse struct {
	Model *ConfigModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
}

func (*GetModelResponse) Descriptor

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

func (*GetModelResponse) GetModel

func (m *GetModelResponse) GetModel() *ConfigModel

func (*GetModelResponse) Marshal

func (m *GetModelResponse) Marshal() (dAtA []byte, err error)

func (*GetModelResponse) MarshalTo

func (m *GetModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetModelResponse) MarshalToSizedBuffer

func (m *GetModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetModelResponse) ProtoMessage

func (*GetModelResponse) ProtoMessage()

func (*GetModelResponse) Reset

func (m *GetModelResponse) Reset()

func (*GetModelResponse) Size

func (m *GetModelResponse) Size() (n int)

func (*GetModelResponse) String

func (m *GetModelResponse) String() string

func (*GetModelResponse) Unmarshal

func (m *GetModelResponse) Unmarshal(dAtA []byte) error

func (*GetModelResponse) XXX_DiscardUnknown

func (m *GetModelResponse) XXX_DiscardUnknown()

func (*GetModelResponse) XXX_Marshal

func (m *GetModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetModelResponse) XXX_Merge

func (m *GetModelResponse) XXX_Merge(src proto.Message)

func (*GetModelResponse) XXX_Size

func (m *GetModelResponse) XXX_Size() int

func (*GetModelResponse) XXX_Unmarshal

func (m *GetModelResponse) XXX_Unmarshal(b []byte) error

type GetStateMode added in v0.7.16

type GetStateMode int32
const (
	GetStateMode_NONE                               GetStateMode = 0
	GetStateMode_OP_STATE                           GetStateMode = 1
	GetStateMode_EXPLICIT_RO_PATHS                  GetStateMode = 2
	GetStateMode_EXPLICIT_RO_PATHS_EXPAND_WILDCARDS GetStateMode = 3
)

func (GetStateMode) EnumDescriptor added in v0.7.16

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

func (GetStateMode) String added in v0.7.16

func (x GetStateMode) String() string

type ListModelsRequest

type ListModelsRequest struct {
}

func (*ListModelsRequest) Descriptor

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

func (*ListModelsRequest) Marshal

func (m *ListModelsRequest) Marshal() (dAtA []byte, err error)

func (*ListModelsRequest) MarshalTo

func (m *ListModelsRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListModelsRequest) MarshalToSizedBuffer

func (m *ListModelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListModelsRequest) ProtoMessage

func (*ListModelsRequest) ProtoMessage()

func (*ListModelsRequest) Reset

func (m *ListModelsRequest) Reset()

func (*ListModelsRequest) Size

func (m *ListModelsRequest) Size() (n int)

func (*ListModelsRequest) String

func (m *ListModelsRequest) String() string

func (*ListModelsRequest) Unmarshal

func (m *ListModelsRequest) Unmarshal(dAtA []byte) error

func (*ListModelsRequest) XXX_DiscardUnknown

func (m *ListModelsRequest) XXX_DiscardUnknown()

func (*ListModelsRequest) XXX_Marshal

func (m *ListModelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListModelsRequest) XXX_Merge

func (m *ListModelsRequest) XXX_Merge(src proto.Message)

func (*ListModelsRequest) XXX_Size

func (m *ListModelsRequest) XXX_Size() int

func (*ListModelsRequest) XXX_Unmarshal

func (m *ListModelsRequest) XXX_Unmarshal(b []byte) error

type ListModelsResponse

type ListModelsResponse struct {
	Models []*ConfigModel `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
}

func (*ListModelsResponse) Descriptor

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

func (*ListModelsResponse) GetModels

func (m *ListModelsResponse) GetModels() []*ConfigModel

func (*ListModelsResponse) Marshal

func (m *ListModelsResponse) Marshal() (dAtA []byte, err error)

func (*ListModelsResponse) MarshalTo

func (m *ListModelsResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListModelsResponse) MarshalToSizedBuffer

func (m *ListModelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListModelsResponse) ProtoMessage

func (*ListModelsResponse) ProtoMessage()

func (*ListModelsResponse) Reset

func (m *ListModelsResponse) Reset()

func (*ListModelsResponse) Size

func (m *ListModelsResponse) Size() (n int)

func (*ListModelsResponse) String

func (m *ListModelsResponse) String() string

func (*ListModelsResponse) Unmarshal

func (m *ListModelsResponse) Unmarshal(dAtA []byte) error

func (*ListModelsResponse) XXX_DiscardUnknown

func (m *ListModelsResponse) XXX_DiscardUnknown()

func (*ListModelsResponse) XXX_Marshal

func (m *ListModelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListModelsResponse) XXX_Merge

func (m *ListModelsResponse) XXX_Merge(src proto.Message)

func (*ListModelsResponse) XXX_Size

func (m *ListModelsResponse) XXX_Size() int

func (*ListModelsResponse) XXX_Unmarshal

func (m *ListModelsResponse) XXX_Unmarshal(b []byte) error

type PushModelRequest

type PushModelRequest struct {
	Model *ConfigModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
}

func (*PushModelRequest) Descriptor

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

func (*PushModelRequest) GetModel

func (m *PushModelRequest) GetModel() *ConfigModel

func (*PushModelRequest) Marshal

func (m *PushModelRequest) Marshal() (dAtA []byte, err error)

func (*PushModelRequest) MarshalTo

func (m *PushModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*PushModelRequest) MarshalToSizedBuffer

func (m *PushModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushModelRequest) ProtoMessage

func (*PushModelRequest) ProtoMessage()

func (*PushModelRequest) Reset

func (m *PushModelRequest) Reset()

func (*PushModelRequest) Size

func (m *PushModelRequest) Size() (n int)

func (*PushModelRequest) String

func (m *PushModelRequest) String() string

func (*PushModelRequest) Unmarshal

func (m *PushModelRequest) Unmarshal(dAtA []byte) error

func (*PushModelRequest) XXX_DiscardUnknown

func (m *PushModelRequest) XXX_DiscardUnknown()

func (*PushModelRequest) XXX_Marshal

func (m *PushModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PushModelRequest) XXX_Merge

func (m *PushModelRequest) XXX_Merge(src proto.Message)

func (*PushModelRequest) XXX_Size

func (m *PushModelRequest) XXX_Size() int

func (*PushModelRequest) XXX_Unmarshal

func (m *PushModelRequest) XXX_Unmarshal(b []byte) error

type PushModelResponse

type PushModelResponse struct {
}

func (*PushModelResponse) Descriptor

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

func (*PushModelResponse) Marshal

func (m *PushModelResponse) Marshal() (dAtA []byte, err error)

func (*PushModelResponse) MarshalTo

func (m *PushModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*PushModelResponse) MarshalToSizedBuffer

func (m *PushModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PushModelResponse) ProtoMessage

func (*PushModelResponse) ProtoMessage()

func (*PushModelResponse) Reset

func (m *PushModelResponse) Reset()

func (*PushModelResponse) Size

func (m *PushModelResponse) Size() (n int)

func (*PushModelResponse) String

func (m *PushModelResponse) String() string

func (*PushModelResponse) Unmarshal

func (m *PushModelResponse) Unmarshal(dAtA []byte) error

func (*PushModelResponse) XXX_DiscardUnknown

func (m *PushModelResponse) XXX_DiscardUnknown()

func (*PushModelResponse) XXX_Marshal

func (m *PushModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PushModelResponse) XXX_Merge

func (m *PushModelResponse) XXX_Merge(src proto.Message)

func (*PushModelResponse) XXX_Size

func (m *PushModelResponse) XXX_Size() int

func (*PushModelResponse) XXX_Unmarshal

func (m *PushModelResponse) XXX_Unmarshal(b []byte) error

type UnimplementedConfigModelRegistryServiceServer

type UnimplementedConfigModelRegistryServiceServer struct {
}

UnimplementedConfigModelRegistryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedConfigModelRegistryServiceServer) DeleteModel

func (*UnimplementedConfigModelRegistryServiceServer) GetModel

func (*UnimplementedConfigModelRegistryServiceServer) ListModels

func (*UnimplementedConfigModelRegistryServiceServer) PushModel

Jump to

Keyboard shortcuts

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