config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_agent_app_config_pb_config_proto protoreflect.FileDescriptor
View Source
var SyncConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "config.SyncConfigService",
	HandlerType: (*SyncConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SyncConfig",
			Handler:    _SyncConfigService_SyncConfig_Handler,
		},
		{
			MethodName: "RewriteConfig",
			Handler:    _SyncConfigService_RewriteConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/agent/app/config/pb/config.proto",
}

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

Functions

func RegisterSyncConfigServiceServer

func RegisterSyncConfigServiceServer(s grpc.ServiceRegistrar, srv SyncConfigServiceServer)

Types

type Response

type Response struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type RewriteConfigRequest

type RewriteConfigRequest struct {
	ConfigmapName string `protobuf:"bytes,1,opt,name=configmap_name,json=configmapName,proto3" json:"configmap_name,omitempty"`
	Namespace     string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Key           string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value         string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*RewriteConfigRequest) Descriptor deprecated

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

Deprecated: Use RewriteConfigRequest.ProtoReflect.Descriptor instead.

func (*RewriteConfigRequest) GetConfigmapName

func (x *RewriteConfigRequest) GetConfigmapName() string

func (*RewriteConfigRequest) GetKey

func (x *RewriteConfigRequest) GetKey() string

func (*RewriteConfigRequest) GetNamespace

func (x *RewriteConfigRequest) GetNamespace() string

func (*RewriteConfigRequest) GetValue

func (x *RewriteConfigRequest) GetValue() string

func (*RewriteConfigRequest) ProtoMessage

func (*RewriteConfigRequest) ProtoMessage()

func (*RewriteConfigRequest) ProtoReflect

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

func (*RewriteConfigRequest) Reset

func (x *RewriteConfigRequest) Reset()

func (*RewriteConfigRequest) String

func (x *RewriteConfigRequest) String() string

type SyncConfigRequest

type SyncConfigRequest struct {
	Namespace             string   `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	TemplateConfigmapName string   `` /* 126-byte string literal not displayed */
	ValueConfigmapName    string   `protobuf:"bytes,3,opt,name=value_configmap_name,json=valueConfigmapName,proto3" json:"value_configmap_name,omitempty"`
	Key                   string   `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	ExtendValueConfigmaps []string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SyncConfigRequest) Descriptor deprecated

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

Deprecated: Use SyncConfigRequest.ProtoReflect.Descriptor instead.

func (*SyncConfigRequest) GetExtendValueConfigmaps

func (x *SyncConfigRequest) GetExtendValueConfigmaps() []string

func (*SyncConfigRequest) GetKey

func (x *SyncConfigRequest) GetKey() string

func (*SyncConfigRequest) GetNamespace

func (x *SyncConfigRequest) GetNamespace() string

func (*SyncConfigRequest) GetTemplateConfigmapName

func (x *SyncConfigRequest) GetTemplateConfigmapName() string

func (*SyncConfigRequest) GetValueConfigmapName

func (x *SyncConfigRequest) GetValueConfigmapName() string

func (*SyncConfigRequest) ProtoMessage

func (*SyncConfigRequest) ProtoMessage()

func (*SyncConfigRequest) ProtoReflect

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

func (*SyncConfigRequest) Reset

func (x *SyncConfigRequest) Reset()

func (*SyncConfigRequest) String

func (x *SyncConfigRequest) String() string

type SyncConfigServiceClient

type SyncConfigServiceClient interface {
	SyncConfig(ctx context.Context, in *SyncConfigRequest, opts ...grpc.CallOption) (*Response, error)
	RewriteConfig(ctx context.Context, in *RewriteConfigRequest, opts ...grpc.CallOption) (*Response, error)
}

SyncConfigServiceClient is the client API for SyncConfigService 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 SyncConfigServiceServer

type SyncConfigServiceServer interface {
	SyncConfig(context.Context, *SyncConfigRequest) (*Response, error)
	RewriteConfig(context.Context, *RewriteConfigRequest) (*Response, error)
	// contains filtered or unexported methods
}

SyncConfigServiceServer is the server API for SyncConfigService service. All implementations must embed UnimplementedSyncConfigServiceServer for forward compatibility

type UnimplementedSyncConfigServiceServer

type UnimplementedSyncConfigServiceServer struct {
}

UnimplementedSyncConfigServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSyncConfigServiceServer) RewriteConfig

func (UnimplementedSyncConfigServiceServer) SyncConfig

type UnsafeSyncConfigServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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