confmanager

package
v0.0.0-...-fb0e841 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ConfigurationService_CreateConfiguration_FullMethodName = "/kuscia.proto.api.v1alpha1.confmanager.ConfigurationService/CreateConfiguration"
	ConfigurationService_QueryConfiguration_FullMethodName  = "/kuscia.proto.api.v1alpha1.confmanager.ConfigurationService/QueryConfiguration"
)
View Source
const (
	CertificateService_GenerateKeyCerts_FullMethodName = "/kuscia.proto.api.v1alpha1.confmanager.CertificateService/GenerateKeyCerts"
)

Variables

View Source
var CertificateService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kuscia.proto.api.v1alpha1.confmanager.CertificateService",
	HandlerType: (*CertificateServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateKeyCerts",
			Handler:    _CertificateService_GenerateKeyCerts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kuscia/proto/api/v1alpha1/confmanager/certificate.proto",
}

CertificateService_ServiceDesc is the grpc.ServiceDesc for CertificateService 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 ConfigurationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kuscia.proto.api.v1alpha1.confmanager.ConfigurationService",
	HandlerType: (*ConfigurationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateConfiguration",
			Handler:    _ConfigurationService_CreateConfiguration_Handler,
		},
		{
			MethodName: "QueryConfiguration",
			Handler:    _ConfigurationService_QueryConfiguration_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kuscia/proto/api/v1alpha1/confmanager/configuration.proto",
}

ConfigurationService_ServiceDesc is the grpc.ServiceDesc for ConfigurationService 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_kuscia_proto_api_v1alpha1_confmanager_certificate_proto protoreflect.FileDescriptor
View Source
var File_kuscia_proto_api_v1alpha1_confmanager_configuration_proto protoreflect.FileDescriptor

Functions

func RegisterCertificateServiceServer

func RegisterCertificateServiceServer(s grpc.ServiceRegistrar, srv CertificateServiceServer)

func RegisterConfigurationServiceServer

func RegisterConfigurationServiceServer(s grpc.ServiceRegistrar, srv ConfigurationServiceServer)

Types

type CertificateServiceClient

type CertificateServiceClient interface {
	GenerateKeyCerts(ctx context.Context, in *GenerateKeyCertsRequest, opts ...grpc.CallOption) (*GenerateKeyCertsResponse, error)
}

CertificateServiceClient is the client API for CertificateService 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 CertificateServiceServer

type CertificateServiceServer interface {
	GenerateKeyCerts(context.Context, *GenerateKeyCertsRequest) (*GenerateKeyCertsResponse, error)
	// contains filtered or unexported methods
}

CertificateServiceServer is the server API for CertificateService service. All implementations must embed UnimplementedCertificateServiceServer for forward compatibility

type ConfigurationServiceClient

type ConfigurationServiceClient interface {
	CreateConfiguration(ctx context.Context, in *CreateConfigurationRequest, opts ...grpc.CallOption) (*CreateConfigurationResponse, error)
	QueryConfiguration(ctx context.Context, in *QueryConfigurationRequest, opts ...grpc.CallOption) (*QueryConfigurationResponse, error)
}

ConfigurationServiceClient is the client API for ConfigurationService 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 ConfigurationServiceServer

type ConfigurationServiceServer interface {
	CreateConfiguration(context.Context, *CreateConfigurationRequest) (*CreateConfigurationResponse, error)
	QueryConfiguration(context.Context, *QueryConfigurationRequest) (*QueryConfigurationResponse, error)
	// contains filtered or unexported methods
}

ConfigurationServiceServer is the server API for ConfigurationService service. All implementations must embed UnimplementedConfigurationServiceServer for forward compatibility

type CreateConfigurationRequest

type CreateConfigurationRequest struct {
	Header  *v1alpha1.RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Id      string                  `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Content string                  `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateConfigurationRequest) Descriptor deprecated

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

Deprecated: Use CreateConfigurationRequest.ProtoReflect.Descriptor instead.

func (*CreateConfigurationRequest) GetContent

func (x *CreateConfigurationRequest) GetContent() string

func (*CreateConfigurationRequest) GetHeader

func (*CreateConfigurationRequest) GetId

func (*CreateConfigurationRequest) ProtoMessage

func (*CreateConfigurationRequest) ProtoMessage()

func (*CreateConfigurationRequest) ProtoReflect

func (*CreateConfigurationRequest) Reset

func (x *CreateConfigurationRequest) Reset()

func (*CreateConfigurationRequest) String

func (x *CreateConfigurationRequest) String() string

type CreateConfigurationResponse

type CreateConfigurationResponse struct {
	Status *v1alpha1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateConfigurationResponse) Descriptor deprecated

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

Deprecated: Use CreateConfigurationResponse.ProtoReflect.Descriptor instead.

func (*CreateConfigurationResponse) GetStatus

func (*CreateConfigurationResponse) ProtoMessage

func (*CreateConfigurationResponse) ProtoMessage()

func (*CreateConfigurationResponse) ProtoReflect

func (*CreateConfigurationResponse) Reset

func (x *CreateConfigurationResponse) Reset()

func (*CreateConfigurationResponse) String

func (x *CreateConfigurationResponse) String() string

type GenerateKeyCertsRequest

type GenerateKeyCertsRequest struct {

	// Common Name, required
	CommonName string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"`
	// Country, optional
	Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
	// Organization, optional
	Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"`
	// Organization Unit, optional
	OrganizationUnit string `protobuf:"bytes,4,opt,name=organization_unit,json=organizationUnit,proto3" json:"organization_unit,omitempty"`
	// Locality, optional
	Locality string `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	// Province, optional
	Province string `protobuf:"bytes,6,opt,name=province,proto3" json:"province,omitempty"`
	// Street Address, optional
	StreetAddress string `protobuf:"bytes,7,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	// Valid Duration Seconds, optional, from now, default: 1 day
	DurationSec int64 `protobuf:"varint,8,opt,name=duration_sec,json=durationSec,proto3" json:"duration_sec,omitempty"`
	// Key Type, Enum: [PKCS#1, PKCS#8], optional, default: PKCS#1
	KeyType string `protobuf:"bytes,9,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateKeyCertsRequest) Descriptor deprecated

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

Deprecated: Use GenerateKeyCertsRequest.ProtoReflect.Descriptor instead.

func (*GenerateKeyCertsRequest) GetCommonName

func (x *GenerateKeyCertsRequest) GetCommonName() string

func (*GenerateKeyCertsRequest) GetCountry

func (x *GenerateKeyCertsRequest) GetCountry() string

func (*GenerateKeyCertsRequest) GetDurationSec

func (x *GenerateKeyCertsRequest) GetDurationSec() int64

func (*GenerateKeyCertsRequest) GetKeyType

func (x *GenerateKeyCertsRequest) GetKeyType() string

func (*GenerateKeyCertsRequest) GetLocality

func (x *GenerateKeyCertsRequest) GetLocality() string

func (*GenerateKeyCertsRequest) GetOrganization

func (x *GenerateKeyCertsRequest) GetOrganization() string

func (*GenerateKeyCertsRequest) GetOrganizationUnit

func (x *GenerateKeyCertsRequest) GetOrganizationUnit() string

func (*GenerateKeyCertsRequest) GetProvince

func (x *GenerateKeyCertsRequest) GetProvince() string

func (*GenerateKeyCertsRequest) GetStreetAddress

func (x *GenerateKeyCertsRequest) GetStreetAddress() string

func (*GenerateKeyCertsRequest) ProtoMessage

func (*GenerateKeyCertsRequest) ProtoMessage()

func (*GenerateKeyCertsRequest) ProtoReflect

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

func (*GenerateKeyCertsRequest) Reset

func (x *GenerateKeyCertsRequest) Reset()

func (*GenerateKeyCertsRequest) String

func (x *GenerateKeyCertsRequest) String() string

type GenerateKeyCertsResponse

type GenerateKeyCertsResponse struct {
	Status *v1alpha1.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The generate private key.Default PKCS#1. Base64 Encoded.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// The cert chain of generate cert file.The first is the generate cert, The last is domain root ca cert.Base64 Encoded.
	CertChain []string `protobuf:"bytes,3,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateKeyCertsResponse) Descriptor deprecated

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

Deprecated: Use GenerateKeyCertsResponse.ProtoReflect.Descriptor instead.

func (*GenerateKeyCertsResponse) GetCertChain

func (x *GenerateKeyCertsResponse) GetCertChain() []string

func (*GenerateKeyCertsResponse) GetKey

func (x *GenerateKeyCertsResponse) GetKey() string

func (*GenerateKeyCertsResponse) GetStatus

func (x *GenerateKeyCertsResponse) GetStatus() *v1alpha1.Status

func (*GenerateKeyCertsResponse) ProtoMessage

func (*GenerateKeyCertsResponse) ProtoMessage()

func (*GenerateKeyCertsResponse) ProtoReflect

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

func (*GenerateKeyCertsResponse) Reset

func (x *GenerateKeyCertsResponse) Reset()

func (*GenerateKeyCertsResponse) String

func (x *GenerateKeyCertsResponse) String() string

type QueryConfigurationRequest

type QueryConfigurationRequest struct {
	Ids       []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	GroupName string   `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryConfigurationRequest) Descriptor deprecated

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

Deprecated: Use QueryConfigurationRequest.ProtoReflect.Descriptor instead.

func (*QueryConfigurationRequest) GetGroupName

func (x *QueryConfigurationRequest) GetGroupName() string

func (*QueryConfigurationRequest) GetIds

func (x *QueryConfigurationRequest) GetIds() []string

func (*QueryConfigurationRequest) ProtoMessage

func (*QueryConfigurationRequest) ProtoMessage()

func (*QueryConfigurationRequest) ProtoReflect

func (*QueryConfigurationRequest) Reset

func (x *QueryConfigurationRequest) Reset()

func (*QueryConfigurationRequest) String

func (x *QueryConfigurationRequest) String() string

type QueryConfigurationResponse

type QueryConfigurationResponse struct {
	Status         *v1alpha1.Status                     `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Configurations map[string]*QueryConfigurationResult `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryConfigurationResponse) Descriptor deprecated

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

Deprecated: Use QueryConfigurationResponse.ProtoReflect.Descriptor instead.

func (*QueryConfigurationResponse) GetConfigurations

func (x *QueryConfigurationResponse) GetConfigurations() map[string]*QueryConfigurationResult

func (*QueryConfigurationResponse) GetStatus

func (x *QueryConfigurationResponse) GetStatus() *v1alpha1.Status

func (*QueryConfigurationResponse) ProtoMessage

func (*QueryConfigurationResponse) ProtoMessage()

func (*QueryConfigurationResponse) ProtoReflect

func (*QueryConfigurationResponse) Reset

func (x *QueryConfigurationResponse) Reset()

func (*QueryConfigurationResponse) String

func (x *QueryConfigurationResponse) String() string

type QueryConfigurationResult

type QueryConfigurationResult struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ErrMsg  string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryConfigurationResult) Descriptor deprecated

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

Deprecated: Use QueryConfigurationResult.ProtoReflect.Descriptor instead.

func (*QueryConfigurationResult) GetContent

func (x *QueryConfigurationResult) GetContent() string

func (*QueryConfigurationResult) GetErrMsg

func (x *QueryConfigurationResult) GetErrMsg() string

func (*QueryConfigurationResult) GetSuccess

func (x *QueryConfigurationResult) GetSuccess() bool

func (*QueryConfigurationResult) ProtoMessage

func (*QueryConfigurationResult) ProtoMessage()

func (*QueryConfigurationResult) ProtoReflect

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

func (*QueryConfigurationResult) Reset

func (x *QueryConfigurationResult) Reset()

func (*QueryConfigurationResult) String

func (x *QueryConfigurationResult) String() string

type UnimplementedCertificateServiceServer

type UnimplementedCertificateServiceServer struct {
}

UnimplementedCertificateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCertificateServiceServer) GenerateKeyCerts

type UnimplementedConfigurationServiceServer

type UnimplementedConfigurationServiceServer struct {
}

UnimplementedConfigurationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedConfigurationServiceServer) CreateConfiguration

func (UnimplementedConfigurationServiceServer) QueryConfiguration

type UnsafeCertificateServiceServer

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

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

type UnsafeConfigurationServiceServer

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

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

Jump to

Keyboard shortcuts

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