pb

package
Version: v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ApiVersion = 3

Variables

View Source
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.

Functions

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)

Types

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 added in v0.2.1

func (AuthenticationType) Enum added in v0.2.1

func (AuthenticationType) EnumDescriptor deprecated

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

Deprecated: Use AuthenticationType.Descriptor instead.

func (AuthenticationType) Number added in v0.2.1

func (AuthenticationType) String

func (x AuthenticationType) String() string

func (AuthenticationType) Type added in v0.2.1

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 deprecated

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 added in v0.2.1

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

func (*DistinguishedName) Reset

func (x *DistinguishedName) Reset()

func (*DistinguishedName) String

func (x *DistinguishedName) String() string

type GetCertificateRequest added in v0.2.1

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 deprecated added in v0.2.1

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

Deprecated: Use GetCertificateRequest.ProtoReflect.Descriptor instead.

func (*GetCertificateRequest) GetProfile added in v0.2.1

func (x *GetCertificateRequest) GetProfile() string

func (*GetCertificateRequest) GetSerialNumber added in v0.2.1

func (x *GetCertificateRequest) GetSerialNumber() int64

func (*GetCertificateRequest) ProtoMessage added in v0.2.1

func (*GetCertificateRequest) ProtoMessage()

func (*GetCertificateRequest) ProtoReflect added in v0.2.1

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

func (*GetCertificateRequest) Reset added in v0.2.1

func (x *GetCertificateRequest) Reset()

func (*GetCertificateRequest) String added in v0.2.1

func (x *GetCertificateRequest) String() string

type GetCertificateResponse added in v0.2.1

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

func (*GetCertificateResponse) Descriptor deprecated added in v0.2.1

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

Deprecated: Use GetCertificateResponse.ProtoReflect.Descriptor instead.

func (*GetCertificateResponse) GetCertificate added in v0.2.1

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

func (*GetCertificateResponse) ProtoMessage added in v0.2.1

func (*GetCertificateResponse) ProtoMessage()

func (*GetCertificateResponse) ProtoReflect added in v0.2.1

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

func (*GetCertificateResponse) Reset added in v0.2.1

func (x *GetCertificateResponse) Reset()

func (*GetCertificateResponse) String added in v0.2.1

func (x *GetCertificateResponse) String() string

type GetVersionRequest

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

func (*GetVersionRequest) Descriptor deprecated

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

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect added in v0.2.1

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 deprecated

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 added in v0.2.1

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 deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect added in v0.2.1

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"`
	// contains filtered or unexported fields
}

func (*HelloResponse) Descriptor deprecated

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 added in v0.2.1

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 deprecated

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 added in v0.2.1

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 deprecated

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 added in v0.2.1

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

func (*IssueCertificateResponse) Reset

func (x *IssueCertificateResponse) Reset()

func (*IssueCertificateResponse) String

func (x *IssueCertificateResponse) String() string

type IssuePreflightRequest added in v0.2.2

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

func (*IssuePreflightRequest) Descriptor deprecated added in v0.2.2

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

Deprecated: Use IssuePreflightRequest.ProtoReflect.Descriptor instead.

func (*IssuePreflightRequest) GetProfile added in v0.2.2

func (x *IssuePreflightRequest) GetProfile() string

func (*IssuePreflightRequest) ProtoMessage added in v0.2.2

func (*IssuePreflightRequest) ProtoMessage()

func (*IssuePreflightRequest) ProtoReflect added in v0.2.2

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

func (*IssuePreflightRequest) Reset added in v0.2.2

func (x *IssuePreflightRequest) Reset()

func (*IssuePreflightRequest) String added in v0.2.2

func (x *IssuePreflightRequest) String() string

type IssuePreflightResponse added in v0.2.2

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

func (*IssuePreflightResponse) Descriptor deprecated added in v0.2.2

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

Deprecated: Use IssuePreflightResponse.ProtoReflect.Descriptor instead.

func (*IssuePreflightResponse) ProtoMessage added in v0.2.2

func (*IssuePreflightResponse) ProtoMessage()

func (*IssuePreflightResponse) ProtoReflect added in v0.2.2

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

func (*IssuePreflightResponse) Reset added in v0.2.2

func (x *IssuePreflightResponse) Reset()

func (*IssuePreflightResponse) String added in v0.2.2

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 deprecated

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 added in v0.2.1

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 deprecated

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

Deprecated: Use Names.ProtoReflect.Descriptor instead.

func (*Names) GetDnsnames added in v0.1.0

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

func (*Names) GetIpaddrs added in v0.1.0

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

func (*Names) ProtoMessage

func (*Names) ProtoMessage()

func (*Names) ProtoReflect added in v0.2.1

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

func (*Names) Reset

func (x *Names) Reset()

func (*Names) String

func (x *Names) String() string

type UnimplementedCertificateServiceServer added in v0.2.1

type UnimplementedCertificateServiceServer struct {
}

UnimplementedCertificateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCertificateServiceServer) GetCertificate added in v0.2.1

func (*UnimplementedCertificateServiceServer) IssueCertificate added in v0.2.1

func (*UnimplementedCertificateServiceServer) IssuePreflight added in v0.2.2

type UnimplementedHelloServiceServer added in v0.2.1

type UnimplementedHelloServiceServer struct {
}

UnimplementedHelloServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHelloServiceServer) Hello added in v0.2.1

type UnimplementedVersionServiceServer added in v0.2.1

type UnimplementedVersionServiceServer struct {
}

UnimplementedVersionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedVersionServiceServer) GetVersion added in v0.2.1

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.

Jump to

Keyboard shortcuts

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