Back to godoc.org

Package pb

v0.2.2
Latest Go to latest

The latest major version is .

Published: May 30, 2020 | License: Apache-2.0 | Module: github.com/IPA-CyberLab/kmgm

Overview

go:generate protoc --go_out=plugins=grpc:. kmgm.proto

Index

Constants

const ApiVersion = 3

Variables

var (
	AuthenticationType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "ANONYMOUS",
		2: "BOOTSTRAP_TOKEN",
		3: "CLIENT_CERT",
	}
	AuthenticationType_value = map[string]int32{
		"UNSPECIFIED":     0,
		"ANONYMOUS":       1,
		"BOOTSTRAP_TOKEN": 2,
		"CLIENT_CERT":     3,
	}
)

Enum value maps for AuthenticationType.

var File_kmgm_proto protoreflect.FileDescriptor

func RegisterCertificateServiceServer

func RegisterCertificateServiceServer(s *grpc.Server, srv CertificateServiceServer)

func RegisterHelloServiceServer

func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)

func RegisterVersionServiceServer

func RegisterVersionServiceServer(s *grpc.Server, srv VersionServiceServer)

type AuthenticationType

type AuthenticationType int32
const (
	AuthenticationType_UNSPECIFIED     AuthenticationType = 0
	AuthenticationType_ANONYMOUS       AuthenticationType = 1
	AuthenticationType_BOOTSTRAP_TOKEN AuthenticationType = 2
	AuthenticationType_CLIENT_CERT     AuthenticationType = 3
)

func (AuthenticationType) Descriptor

func (AuthenticationType) Descriptor() protoreflect.EnumDescriptor

func (AuthenticationType) Enum

func (x AuthenticationType) Enum() *AuthenticationType

func (AuthenticationType) EnumDescriptor

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

Deprecated: Use AuthenticationType.Descriptor instead.

func (AuthenticationType) Number

func (x AuthenticationType) Number() protoreflect.EnumNumber

func (AuthenticationType) String

func (x AuthenticationType) String() string

func (AuthenticationType) Type

func (AuthenticationType) Type() protoreflect.EnumType

type CertificateServiceClient

type CertificateServiceClient interface {
	IssuePreflight(ctx context.Context, in *IssuePreflightRequest, opts ...grpc.CallOption) (*IssuePreflightResponse, error)
	IssueCertificate(ctx context.Context, in *IssueCertificateRequest, opts ...grpc.CallOption) (*IssueCertificateResponse, error)
	GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...grpc.CallOption) (*GetCertificateResponse, error)
}

CertificateServiceClient is the client API for CertificateService service.

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

type CertificateServiceServer

type CertificateServiceServer interface {
	IssuePreflight(context.Context, *IssuePreflightRequest) (*IssuePreflightResponse, error)
	IssueCertificate(context.Context, *IssueCertificateRequest) (*IssueCertificateResponse, error)
	GetCertificate(context.Context, *GetCertificateRequest) (*GetCertificateResponse, error)
}

CertificateServiceServer is the server API for CertificateService service.

type DistinguishedName

type DistinguishedName struct {
	CommonName         string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"`
	Organization       string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"`
	OrganizationalUnit string `protobuf:"bytes,3,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"`
	Country            string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	Locality           string `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	Province           string `protobuf:"bytes,6,opt,name=province,proto3" json:"province,omitempty"`
	StreetAddress      string `protobuf:"bytes,7,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	PostalCode         string `protobuf:"bytes,8,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	// contains filtered or unexported fields
}

func (*DistinguishedName) Descriptor

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

Deprecated: Use DistinguishedName.ProtoReflect.Descriptor instead.

func (*DistinguishedName) GetCommonName

func (x *DistinguishedName) GetCommonName() string

func (*DistinguishedName) GetCountry

func (x *DistinguishedName) GetCountry() string

func (*DistinguishedName) GetLocality

func (x *DistinguishedName) GetLocality() string

func (*DistinguishedName) GetOrganization

func (x *DistinguishedName) GetOrganization() string

func (*DistinguishedName) GetOrganizationalUnit

func (x *DistinguishedName) GetOrganizationalUnit() string

func (*DistinguishedName) GetPostalCode

func (x *DistinguishedName) GetPostalCode() string

func (*DistinguishedName) GetProvince

func (x *DistinguishedName) GetProvince() string

func (*DistinguishedName) GetStreetAddress

func (x *DistinguishedName) GetStreetAddress() string

func (*DistinguishedName) ProtoMessage

func (*DistinguishedName) ProtoMessage()

func (*DistinguishedName) ProtoReflect

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

func (*DistinguishedName) Reset

func (x *DistinguishedName) Reset()

func (*DistinguishedName) String

func (x *DistinguishedName) String() string

type GetCertificateRequest

type GetCertificateRequest struct {
	Profile      string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	SerialNumber int64  `protobuf:"varint,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCertificateRequest) Descriptor

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

Deprecated: Use GetCertificateRequest.ProtoReflect.Descriptor instead.

func (*GetCertificateRequest) GetProfile

func (x *GetCertificateRequest) GetProfile() string

func (*GetCertificateRequest) GetSerialNumber

func (x *GetCertificateRequest) GetSerialNumber() int64

func (*GetCertificateRequest) ProtoMessage

func (*GetCertificateRequest) ProtoMessage()

func (*GetCertificateRequest) ProtoReflect

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

func (*GetCertificateRequest) Reset

func (x *GetCertificateRequest) Reset()

func (*GetCertificateRequest) String

func (x *GetCertificateRequest) String() string

type GetCertificateResponse

type GetCertificateResponse struct {
	Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCertificateResponse) Descriptor

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

Deprecated: Use GetCertificateResponse.ProtoReflect.Descriptor instead.

func (*GetCertificateResponse) GetCertificate

func (x *GetCertificateResponse) GetCertificate() []byte

func (*GetCertificateResponse) ProtoMessage

func (*GetCertificateResponse) ProtoMessage()

func (*GetCertificateResponse) ProtoReflect

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

func (*GetCertificateResponse) Reset

func (x *GetCertificateResponse) Reset()

func (*GetCertificateResponse) String

func (x *GetCertificateResponse) String() string

type GetVersionRequest

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

func (*GetVersionRequest) Descriptor

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

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

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

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

type GetVersionResponse

type GetVersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Commit  string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVersionResponse) Descriptor

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

Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead.

func (*GetVersionResponse) GetCommit

func (x *GetVersionResponse) GetCommit() string

func (*GetVersionResponse) GetVersion

func (x *GetVersionResponse) GetVersion() string

func (*GetVersionResponse) ProtoMessage

func (*GetVersionResponse) ProtoMessage()

func (*GetVersionResponse) ProtoReflect

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

func (*GetVersionResponse) Reset

func (x *GetVersionResponse) Reset()

func (*GetVersionResponse) String

func (x *GetVersionResponse) String() string

type HelloRequest

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

func (*HelloRequest) Descriptor

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type HelloResponse

type HelloResponse struct {
	ApiVersion         int32              `protobuf:"varint,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	AuthenticationType AuthenticationType "" /* 145 byte string literal not displayed */
	AuthenticatedUser  string             `protobuf:"bytes,3,opt,name=authenticated_user,json=authenticatedUser,proto3" json:"authenticated_user,omitempty"`

}

func (*HelloResponse) Descriptor

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetApiVersion

func (x *HelloResponse) GetApiVersion() int32

func (*HelloResponse) GetAuthenticatedUser

func (x *HelloResponse) GetAuthenticatedUser() string

func (*HelloResponse) GetAuthenticationType

func (x *HelloResponse) GetAuthenticationType() AuthenticationType

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type HelloServiceClient

type HelloServiceClient interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}

HelloServiceClient is the client API for HelloService service.

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

type HelloServiceServer

type HelloServiceServer interface {
	Hello(context.Context, *HelloRequest) (*HelloResponse, error)
}

HelloServiceServer is the server API for HelloService service.

type IssueCertificateRequest

type IssueCertificateRequest struct {
	PublicKey        []byte             `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Subject          *DistinguishedName `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	Names            *Names             `protobuf:"bytes,3,opt,name=names,proto3" json:"names,omitempty"`
	NotAfterUnixtime int64              `protobuf:"varint,4,opt,name=not_after_unixtime,json=notAfterUnixtime,proto3" json:"not_after_unixtime,omitempty"`
	KeyUsage         *KeyUsage          `protobuf:"bytes,5,opt,name=key_usage,json=keyUsage,proto3" json:"key_usage,omitempty"`
	Profile          string             `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*IssueCertificateRequest) Descriptor

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

Deprecated: Use IssueCertificateRequest.ProtoReflect.Descriptor instead.

func (*IssueCertificateRequest) GetKeyUsage

func (x *IssueCertificateRequest) GetKeyUsage() *KeyUsage

func (*IssueCertificateRequest) GetNames

func (x *IssueCertificateRequest) GetNames() *Names

func (*IssueCertificateRequest) GetNotAfterUnixtime

func (x *IssueCertificateRequest) GetNotAfterUnixtime() int64

func (*IssueCertificateRequest) GetProfile

func (x *IssueCertificateRequest) GetProfile() string

func (*IssueCertificateRequest) GetPublicKey

func (x *IssueCertificateRequest) GetPublicKey() []byte

func (*IssueCertificateRequest) GetSubject

func (x *IssueCertificateRequest) GetSubject() *DistinguishedName

func (*IssueCertificateRequest) ProtoMessage

func (*IssueCertificateRequest) ProtoMessage()

func (*IssueCertificateRequest) ProtoReflect

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

func (*IssueCertificateRequest) Reset

func (x *IssueCertificateRequest) Reset()

func (*IssueCertificateRequest) String

func (x *IssueCertificateRequest) String() string

type IssueCertificateResponse

type IssueCertificateResponse struct {
	Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// contains filtered or unexported fields
}

func (*IssueCertificateResponse) Descriptor

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

Deprecated: Use IssueCertificateResponse.ProtoReflect.Descriptor instead.

func (*IssueCertificateResponse) GetCertificate

func (x *IssueCertificateResponse) GetCertificate() []byte

func (*IssueCertificateResponse) ProtoMessage

func (*IssueCertificateResponse) ProtoMessage()

func (*IssueCertificateResponse) ProtoReflect

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

func (*IssueCertificateResponse) Reset

func (x *IssueCertificateResponse) Reset()

func (*IssueCertificateResponse) String

func (x *IssueCertificateResponse) String() string

type IssuePreflightRequest

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

func (*IssuePreflightRequest) Descriptor

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

Deprecated: Use IssuePreflightRequest.ProtoReflect.Descriptor instead.

func (*IssuePreflightRequest) GetProfile

func (x *IssuePreflightRequest) GetProfile() string

func (*IssuePreflightRequest) ProtoMessage

func (*IssuePreflightRequest) ProtoMessage()

func (*IssuePreflightRequest) ProtoReflect

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

func (*IssuePreflightRequest) Reset

func (x *IssuePreflightRequest) Reset()

func (*IssuePreflightRequest) String

func (x *IssuePreflightRequest) String() string

type IssuePreflightResponse

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

func (*IssuePreflightResponse) Descriptor

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

Deprecated: Use IssuePreflightResponse.ProtoReflect.Descriptor instead.

func (*IssuePreflightResponse) ProtoMessage

func (*IssuePreflightResponse) ProtoMessage()

func (*IssuePreflightResponse) ProtoReflect

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

func (*IssuePreflightResponse) Reset

func (x *IssuePreflightResponse) Reset()

func (*IssuePreflightResponse) String

func (x *IssuePreflightResponse) String() string

type KeyUsage

type KeyUsage struct {
	KeyUsage     uint32   `protobuf:"varint,1,opt,name=key_usage,json=keyUsage,proto3" json:"key_usage,omitempty"`
	ExtKeyUsages []uint32 `protobuf:"varint,2,rep,packed,name=ext_key_usages,json=extKeyUsages,proto3" json:"ext_key_usages,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyUsage) Descriptor

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

Deprecated: Use KeyUsage.ProtoReflect.Descriptor instead.

func (*KeyUsage) GetExtKeyUsages

func (x *KeyUsage) GetExtKeyUsages() []uint32

func (*KeyUsage) GetKeyUsage

func (x *KeyUsage) GetKeyUsage() uint32

func (*KeyUsage) ProtoMessage

func (*KeyUsage) ProtoMessage()

func (*KeyUsage) ProtoReflect

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

func (*KeyUsage) Reset

func (x *KeyUsage) Reset()

func (*KeyUsage) String

func (x *KeyUsage) String() string

type Names

type Names struct {
	Dnsnames []string `protobuf:"bytes,1,rep,name=dnsnames,proto3" json:"dnsnames,omitempty"`
	Ipaddrs  []string `protobuf:"bytes,2,rep,name=ipaddrs,proto3" json:"ipaddrs,omitempty"`
	// contains filtered or unexported fields
}

func (*Names) Descriptor

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

Deprecated: Use Names.ProtoReflect.Descriptor instead.

func (*Names) GetDnsnames

func (x *Names) GetDnsnames() []string

func (*Names) GetIpaddrs

func (x *Names) GetIpaddrs() []string

func (*Names) ProtoMessage

func (*Names) ProtoMessage()

func (*Names) ProtoReflect

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

func (*Names) Reset

func (x *Names) Reset()

func (*Names) String

func (x *Names) String() string

type UnimplementedCertificateServiceServer

type UnimplementedCertificateServiceServer struct {
}

UnimplementedCertificateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCertificateServiceServer) GetCertificate

func (*UnimplementedCertificateServiceServer) GetCertificate(context.Context, *GetCertificateRequest) (*GetCertificateResponse, error)

func (*UnimplementedCertificateServiceServer) IssueCertificate

func (*UnimplementedCertificateServiceServer) IssueCertificate(context.Context, *IssueCertificateRequest) (*IssueCertificateResponse, error)

func (*UnimplementedCertificateServiceServer) IssuePreflight

func (*UnimplementedCertificateServiceServer) IssuePreflight(context.Context, *IssuePreflightRequest) (*IssuePreflightResponse, error)

type UnimplementedHelloServiceServer

type UnimplementedHelloServiceServer struct {
}

UnimplementedHelloServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHelloServiceServer) Hello

func (*UnimplementedHelloServiceServer) Hello(context.Context, *HelloRequest) (*HelloResponse, error)

type UnimplementedVersionServiceServer

type UnimplementedVersionServiceServer struct {
}

UnimplementedVersionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedVersionServiceServer) GetVersion

func (*UnimplementedVersionServiceServer) GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)

type VersionServiceClient

type VersionServiceClient interface {
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionResponse, error)
}

VersionServiceClient is the client API for VersionService service.

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

type VersionServiceServer

type VersionServiceServer interface {
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionResponse, error)
}

VersionServiceServer is the server API for VersionService service.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier