definition

package
v0.0.0-...-2735486 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigV1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "config.ConfigV1",
	HandlerType: (*ConfigV1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Modules",
			Handler:    _ConfigV1_Modules_Handler,
		},
		{
			MethodName: "ModuleDetails",
			Handler:    _ConfigV1_ModuleDetails_Handler,
		},
		{
			MethodName: "FileDetails",
			Handler:    _ConfigV1_FileDetails_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "integrations/config/v1/definition/config.proto",
}

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

View Source
var File_integrations_config_v1_definition_config_proto protoreflect.FileDescriptor

Functions

func RegisterConfigV1Server

func RegisterConfigV1Server(s grpc.ServiceRegistrar, srv ConfigV1Server)

Types

type ConfigV1Client

type ConfigV1Client interface {
	// Returns list of registered modules
	Modules(ctx context.Context, in *definition.Empty, opts ...grpc.CallOption) (*ConfigV1ModulesResponse, error)
	// Returns details of the module
	ModuleDetails(ctx context.Context, in *ConfigV1ModuleDetailsRequest, opts ...grpc.CallOption) (*ConfigV1ModuleDetailsResponse, error)
	// Returns file details
	FileDetails(ctx context.Context, in *ConfigV1FileDetailsRequest, opts ...grpc.CallOption) (*ConfigV1FileDetailsResponse, error)
}

ConfigV1Client is the client API for ConfigV1 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 NewConfigV1Client

func NewConfigV1Client(cc grpc.ClientConnInterface) ConfigV1Client

type ConfigV1File

type ConfigV1File struct {

	// Relative path of the config file
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Size of the config file in bytes
	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// Sha256Sum of the file (if requested)
	Checksum *string `protobuf:"bytes,3,opt,name=checksum,proto3,oneof" json:"checksum,omitempty"`
	// Timestamp of the file creation
	Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	// Timestamp of the file update
	Updated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated,proto3" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

Information about configuration file

func (*ConfigV1File) Descriptor deprecated

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

Deprecated: Use ConfigV1File.ProtoReflect.Descriptor instead.

func (*ConfigV1File) GetChecksum

func (x *ConfigV1File) GetChecksum() string

func (*ConfigV1File) GetCreated

func (x *ConfigV1File) GetCreated() *timestamppb.Timestamp

func (*ConfigV1File) GetPath

func (x *ConfigV1File) GetPath() string

func (*ConfigV1File) GetSize

func (x *ConfigV1File) GetSize() int64

func (*ConfigV1File) GetUpdated

func (x *ConfigV1File) GetUpdated() *timestamppb.Timestamp

func (*ConfigV1File) ProtoMessage

func (*ConfigV1File) ProtoMessage()

func (*ConfigV1File) ProtoReflect

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

func (*ConfigV1File) Reset

func (x *ConfigV1File) Reset()

func (*ConfigV1File) String

func (x *ConfigV1File) String() string

type ConfigV1FileDetailsRequest

type ConfigV1FileDetailsRequest struct {

	// Name of the module
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Name of the file
	File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	// Define if checksum of module should be returned
	Checksum *bool `protobuf:"varint,3,opt,name=checksum,proto3,oneof" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

ConfigV1 ModuleDetails Call Request

func (*ConfigV1FileDetailsRequest) Descriptor deprecated

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

Deprecated: Use ConfigV1FileDetailsRequest.ProtoReflect.Descriptor instead.

func (*ConfigV1FileDetailsRequest) GetChecksum

func (x *ConfigV1FileDetailsRequest) GetChecksum() bool

func (*ConfigV1FileDetailsRequest) GetFile

func (x *ConfigV1FileDetailsRequest) GetFile() string

func (*ConfigV1FileDetailsRequest) GetModule

func (x *ConfigV1FileDetailsRequest) GetModule() string

func (*ConfigV1FileDetailsRequest) ProtoMessage

func (*ConfigV1FileDetailsRequest) ProtoMessage()

func (*ConfigV1FileDetailsRequest) ProtoReflect

func (*ConfigV1FileDetailsRequest) Reset

func (x *ConfigV1FileDetailsRequest) Reset()

func (*ConfigV1FileDetailsRequest) String

func (x *ConfigV1FileDetailsRequest) String() string

type ConfigV1FileDetailsResponse

type ConfigV1FileDetailsResponse struct {

	// Name of the module
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Spec of the file
	File *ConfigV1File `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

ConfigV1 ModuleDetails Call Response

func (*ConfigV1FileDetailsResponse) Descriptor deprecated

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

Deprecated: Use ConfigV1FileDetailsResponse.ProtoReflect.Descriptor instead.

func (*ConfigV1FileDetailsResponse) GetFile

func (*ConfigV1FileDetailsResponse) GetModule

func (x *ConfigV1FileDetailsResponse) GetModule() string

func (*ConfigV1FileDetailsResponse) ProtoMessage

func (*ConfigV1FileDetailsResponse) ProtoMessage()

func (*ConfigV1FileDetailsResponse) ProtoReflect

func (*ConfigV1FileDetailsResponse) Reset

func (x *ConfigV1FileDetailsResponse) Reset()

func (*ConfigV1FileDetailsResponse) String

func (x *ConfigV1FileDetailsResponse) String() string

type ConfigV1ModuleDetailsRequest

type ConfigV1ModuleDetailsRequest struct {

	// Name of the module
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Define if checksum of module should be returned
	Checksum *bool `protobuf:"varint,2,opt,name=checksum,proto3,oneof" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

ConfigV1 ModuleDetails Call Request

func (*ConfigV1ModuleDetailsRequest) Descriptor deprecated

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

Deprecated: Use ConfigV1ModuleDetailsRequest.ProtoReflect.Descriptor instead.

func (*ConfigV1ModuleDetailsRequest) GetChecksum

func (x *ConfigV1ModuleDetailsRequest) GetChecksum() bool

func (*ConfigV1ModuleDetailsRequest) GetModule

func (x *ConfigV1ModuleDetailsRequest) GetModule() string

func (*ConfigV1ModuleDetailsRequest) ProtoMessage

func (*ConfigV1ModuleDetailsRequest) ProtoMessage()

func (*ConfigV1ModuleDetailsRequest) ProtoReflect

func (*ConfigV1ModuleDetailsRequest) Reset

func (x *ConfigV1ModuleDetailsRequest) Reset()

func (*ConfigV1ModuleDetailsRequest) String

type ConfigV1ModuleDetailsResponse

type ConfigV1ModuleDetailsResponse struct {

	// Name of the module
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// List of the files
	Files []*ConfigV1File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// Sha256Sum of the module (if requested)
	Checksum *string `protobuf:"bytes,3,opt,name=checksum,proto3,oneof" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

ConfigV1 ModuleDetails Call Response

func (*ConfigV1ModuleDetailsResponse) Descriptor deprecated

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

Deprecated: Use ConfigV1ModuleDetailsResponse.ProtoReflect.Descriptor instead.

func (*ConfigV1ModuleDetailsResponse) GetChecksum

func (x *ConfigV1ModuleDetailsResponse) GetChecksum() string

func (*ConfigV1ModuleDetailsResponse) GetFiles

func (*ConfigV1ModuleDetailsResponse) GetModule

func (x *ConfigV1ModuleDetailsResponse) GetModule() string

func (*ConfigV1ModuleDetailsResponse) ProtoMessage

func (*ConfigV1ModuleDetailsResponse) ProtoMessage()

func (*ConfigV1ModuleDetailsResponse) ProtoReflect

func (*ConfigV1ModuleDetailsResponse) Reset

func (x *ConfigV1ModuleDetailsResponse) Reset()

func (*ConfigV1ModuleDetailsResponse) String

type ConfigV1ModulesResponse

type ConfigV1ModulesResponse struct {

	// List of registered modules
	Modules []string `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

ConfigV1 Modules Call Response

func (*ConfigV1ModulesResponse) Descriptor deprecated

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

Deprecated: Use ConfigV1ModulesResponse.ProtoReflect.Descriptor instead.

func (*ConfigV1ModulesResponse) GetModules

func (x *ConfigV1ModulesResponse) GetModules() []string

func (*ConfigV1ModulesResponse) ProtoMessage

func (*ConfigV1ModulesResponse) ProtoMessage()

func (*ConfigV1ModulesResponse) ProtoReflect

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

func (*ConfigV1ModulesResponse) Reset

func (x *ConfigV1ModulesResponse) Reset()

func (*ConfigV1ModulesResponse) String

func (x *ConfigV1ModulesResponse) String() string

type ConfigV1Server

type ConfigV1Server interface {
	// Returns list of registered modules
	Modules(context.Context, *definition.Empty) (*ConfigV1ModulesResponse, error)
	// Returns details of the module
	ModuleDetails(context.Context, *ConfigV1ModuleDetailsRequest) (*ConfigV1ModuleDetailsResponse, error)
	// Returns file details
	FileDetails(context.Context, *ConfigV1FileDetailsRequest) (*ConfigV1FileDetailsResponse, error)
	// contains filtered or unexported methods
}

ConfigV1Server is the server API for ConfigV1 service. All implementations must embed UnimplementedConfigV1Server for forward compatibility

type UnimplementedConfigV1Server

type UnimplementedConfigV1Server struct {
}

UnimplementedConfigV1Server must be embedded to have forward compatible implementations.

func (UnimplementedConfigV1Server) Modules

type UnsafeConfigV1Server

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

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

Jump to

Keyboard shortcuts

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