sentry

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCAServer

func RegisterCAServer(s *grpc.Server, srv CAServer)

Types

type CAClient

type CAClient interface {
	// A request for a time-bound certificate to be signed.
	//
	// The requesting side must provide an id for both loosely based
	// And strong based identities.
	SignCertificate(ctx context.Context, in *SignCertificateRequest, opts ...grpc.CallOption) (*SignCertificateResponse, error)
}

CAClient is the client API for CA service.

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

func NewCAClient

func NewCAClient(cc *grpc.ClientConn) CAClient

type CAServer

type CAServer interface {
	// A request for a time-bound certificate to be signed.
	//
	// The requesting side must provide an id for both loosely based
	// And strong based identities.
	SignCertificate(context.Context, *SignCertificateRequest) (*SignCertificateResponse, error)
}

CAServer is the server API for CA service.

type SignCertificateRequest

type SignCertificateRequest struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// A PEM-encoded x509 CSR.
	CertificateSigningRequest []byte   `` /* 138-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{} `json:"-"`
	XXX_unrecognized          []byte   `json:"-"`
	XXX_sizecache             int32    `json:"-"`
}

func (*SignCertificateRequest) Descriptor

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

func (*SignCertificateRequest) GetCertificateSigningRequest

func (m *SignCertificateRequest) GetCertificateSigningRequest() []byte

func (*SignCertificateRequest) GetId

func (m *SignCertificateRequest) GetId() string

func (*SignCertificateRequest) GetToken

func (m *SignCertificateRequest) GetToken() string

func (*SignCertificateRequest) ProtoMessage

func (*SignCertificateRequest) ProtoMessage()

func (*SignCertificateRequest) Reset

func (m *SignCertificateRequest) Reset()

func (*SignCertificateRequest) String

func (m *SignCertificateRequest) String() string

func (*SignCertificateRequest) XXX_DiscardUnknown

func (m *SignCertificateRequest) XXX_DiscardUnknown()

func (*SignCertificateRequest) XXX_Marshal

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

func (*SignCertificateRequest) XXX_Merge

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

func (*SignCertificateRequest) XXX_Size

func (m *SignCertificateRequest) XXX_Size() int

func (*SignCertificateRequest) XXX_Unmarshal

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

type SignCertificateResponse

type SignCertificateResponse struct {
	// A PEM-encoded x509 Certificate.
	WorkloadCertificate []byte `protobuf:"bytes,1,opt,name=workload_certificate,json=workloadCertificate,proto3" json:"workload_certificate,omitempty"`
	// A list of PEM-encoded x509 Certificates that establish the trust chain
	// between the workload certificate and the well-known trust root cert.
	TrustChainCertificates [][]byte             `` /* 129-byte string literal not displayed */
	ValidUntil             *timestamp.Timestamp `protobuf:"bytes,3,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"`
	XXX_NoUnkeyedLiteral   struct{}             `json:"-"`
	XXX_unrecognized       []byte               `json:"-"`
	XXX_sizecache          int32                `json:"-"`
}

func (*SignCertificateResponse) Descriptor

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

func (*SignCertificateResponse) GetTrustChainCertificates

func (m *SignCertificateResponse) GetTrustChainCertificates() [][]byte

func (*SignCertificateResponse) GetValidUntil

func (m *SignCertificateResponse) GetValidUntil() *timestamp.Timestamp

func (*SignCertificateResponse) GetWorkloadCertificate

func (m *SignCertificateResponse) GetWorkloadCertificate() []byte

func (*SignCertificateResponse) ProtoMessage

func (*SignCertificateResponse) ProtoMessage()

func (*SignCertificateResponse) Reset

func (m *SignCertificateResponse) Reset()

func (*SignCertificateResponse) String

func (m *SignCertificateResponse) String() string

func (*SignCertificateResponse) XXX_DiscardUnknown

func (m *SignCertificateResponse) XXX_DiscardUnknown()

func (*SignCertificateResponse) XXX_Marshal

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

func (*SignCertificateResponse) XXX_Merge

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

func (*SignCertificateResponse) XXX_Size

func (m *SignCertificateResponse) XXX_Size() int

func (*SignCertificateResponse) XXX_Unmarshal

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

type UnimplementedCAServer

type UnimplementedCAServer struct {
}

UnimplementedCAServer can be embedded to have forward compatible implementations.

func (*UnimplementedCAServer) SignCertificate

Jump to

Keyboard shortcuts

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