api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCertificateIssuerServer

func RegisterCertificateIssuerServer(s *grpc.Server, srv CertificateIssuerServer)

Types

type CertificateIssuerClient

type CertificateIssuerClient interface {
	IssueCert(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	OnCertificateRenewal(ctx context.Context, in *CertificateRenewalNotificationRequest, opts ...grpc.CallOption) (CertificateIssuer_OnCertificateRenewalClient, error)
}

CertificateIssuerClient is the client API for CertificateIssuer service.

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

func NewCertificateIssuerClient

func NewCertificateIssuerClient(cc *grpc.ClientConn) CertificateIssuerClient

type CertificateIssuerServer

CertificateIssuerServer is the server API for CertificateIssuer service.

type CertificateIssuer_OnCertificateRenewalClient

type CertificateIssuer_OnCertificateRenewalClient interface {
	Recv() (*RenewedCertificateEvent, error)
	grpc.ClientStream
}

type CertificateIssuer_OnCertificateRenewalServer

type CertificateIssuer_OnCertificateRenewalServer interface {
	Send(*RenewedCertificateEvent) error
	grpc.ServerStream
}

type CertificateRenewalNotificationRequest

type CertificateRenewalNotificationRequest struct {
	// A list of DNS names to monitor for renewals
	DnsNames             []string `protobuf:"bytes,1,rep,name=dnsNames,proto3" json:"dnsNames,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CertificateRenewalNotificationRequest) Descriptor

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

func (*CertificateRenewalNotificationRequest) GetDnsNames

func (m *CertificateRenewalNotificationRequest) GetDnsNames() []string

func (*CertificateRenewalNotificationRequest) ProtoMessage

func (*CertificateRenewalNotificationRequest) ProtoMessage()

func (*CertificateRenewalNotificationRequest) Reset

func (*CertificateRenewalNotificationRequest) String

func (*CertificateRenewalNotificationRequest) XXX_DiscardUnknown

func (m *CertificateRenewalNotificationRequest) XXX_DiscardUnknown()

func (*CertificateRenewalNotificationRequest) XXX_Marshal

func (m *CertificateRenewalNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertificateRenewalNotificationRequest) XXX_Merge

func (*CertificateRenewalNotificationRequest) XXX_Size

func (*CertificateRenewalNotificationRequest) XXX_Unmarshal

func (m *CertificateRenewalNotificationRequest) XXX_Unmarshal(b []byte) error

type CertificateRequest

type CertificateRequest struct {
	// Example: foo.bar.com
	DnsName              string   `protobuf:"bytes,1,opt,name=dnsName,proto3" json:"dnsName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request for a certificate to be issued

func (*CertificateRequest) Descriptor

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

func (*CertificateRequest) GetDnsName

func (m *CertificateRequest) GetDnsName() string

func (*CertificateRequest) ProtoMessage

func (*CertificateRequest) ProtoMessage()

func (*CertificateRequest) Reset

func (m *CertificateRequest) Reset()

func (*CertificateRequest) String

func (m *CertificateRequest) String() string

func (*CertificateRequest) XXX_DiscardUnknown

func (m *CertificateRequest) XXX_DiscardUnknown()

func (*CertificateRequest) XXX_Marshal

func (m *CertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertificateRequest) XXX_Merge

func (m *CertificateRequest) XXX_Merge(src proto.Message)

func (*CertificateRequest) XXX_Size

func (m *CertificateRequest) XXX_Size() int

func (*CertificateRequest) XXX_Unmarshal

func (m *CertificateRequest) XXX_Unmarshal(b []byte) error

type CertificateResponse

type CertificateResponse struct {
	// A blob containing the cert
	Certificate string `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// A blob containing the private key
	PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	// The DNS names this certificate is valid for
	Names                []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A successful response containing a issued certificate

func (*CertificateResponse) Descriptor

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

func (*CertificateResponse) GetCertificate

func (m *CertificateResponse) GetCertificate() string

func (*CertificateResponse) GetNames

func (m *CertificateResponse) GetNames() []string

func (*CertificateResponse) GetPrivateKey

func (m *CertificateResponse) GetPrivateKey() string

func (*CertificateResponse) ProtoMessage

func (*CertificateResponse) ProtoMessage()

func (*CertificateResponse) Reset

func (m *CertificateResponse) Reset()

func (*CertificateResponse) String

func (m *CertificateResponse) String() string

func (*CertificateResponse) XXX_DiscardUnknown

func (m *CertificateResponse) XXX_DiscardUnknown()

func (*CertificateResponse) XXX_Marshal

func (m *CertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertificateResponse) XXX_Merge

func (m *CertificateResponse) XXX_Merge(src proto.Message)

func (*CertificateResponse) XXX_Size

func (m *CertificateResponse) XXX_Size() int

func (*CertificateResponse) XXX_Unmarshal

func (m *CertificateResponse) XXX_Unmarshal(b []byte) error

type PingRequest

type PingRequest struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A request for ping

func (*PingRequest) Descriptor

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

func (*PingRequest) GetMsg

func (m *PingRequest) GetMsg() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingRequest) XXX_Merge

func (m *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

func (m *PingRequest) XXX_Unmarshal(b []byte) error

type PingResponse

type PingResponse struct {
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A response for ping

func (*PingResponse) Descriptor

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

func (*PingResponse) GetMsg

func (m *PingResponse) GetMsg() string

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset

func (m *PingResponse) Reset()

func (*PingResponse) String

func (m *PingResponse) String() string

func (*PingResponse) XXX_DiscardUnknown

func (m *PingResponse) XXX_DiscardUnknown()

func (*PingResponse) XXX_Marshal

func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingResponse) XXX_Merge

func (m *PingResponse) XXX_Merge(src proto.Message)

func (*PingResponse) XXX_Size

func (m *PingResponse) XXX_Size() int

func (*PingResponse) XXX_Unmarshal

func (m *PingResponse) XXX_Unmarshal(b []byte) error

type RenewedCertificateEvent

type RenewedCertificateEvent struct {
	// Example: foo.bar.com
	DnsName              string   `protobuf:"bytes,1,opt,name=dnsName,proto3" json:"dnsName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for a certificate that has been renewed on the server

func (*RenewedCertificateEvent) Descriptor

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

func (*RenewedCertificateEvent) GetDnsName

func (m *RenewedCertificateEvent) GetDnsName() string

func (*RenewedCertificateEvent) ProtoMessage

func (*RenewedCertificateEvent) ProtoMessage()

func (*RenewedCertificateEvent) Reset

func (m *RenewedCertificateEvent) Reset()

func (*RenewedCertificateEvent) String

func (m *RenewedCertificateEvent) String() string

func (*RenewedCertificateEvent) XXX_DiscardUnknown

func (m *RenewedCertificateEvent) XXX_DiscardUnknown()

func (*RenewedCertificateEvent) XXX_Marshal

func (m *RenewedCertificateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenewedCertificateEvent) XXX_Merge

func (m *RenewedCertificateEvent) XXX_Merge(src proto.Message)

func (*RenewedCertificateEvent) XXX_Size

func (m *RenewedCertificateEvent) XXX_Size() int

func (*RenewedCertificateEvent) XXX_Unmarshal

func (m *RenewedCertificateEvent) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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