pb

package
v0.0.0-...-68ef6d3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertificateType_name = map[int32]string{
	0: "CT_UNKNOWN",
	1: "CT_X509",
}
View Source
var CertificateType_value = map[string]int32{
	"CT_UNKNOWN": 0,
	"CT_X509":    1,
}
View Source
var Endpoint_Type_name = map[int32]string{
	0: "EP_UNSPECIFIED",
	1: "EP_IPSEC_TUNNEL",
	2: "EP_DAEMON",
}
View Source
var Endpoint_Type_value = map[string]int32{
	"EP_UNSPECIFIED":  0,
	"EP_IPSEC_TUNNEL": 1,
	"EP_DAEMON":       2,
}
View Source
var KeyType_name = map[int32]string{
	0: "KT_UNKNOWN",
	1: "KT_RSA",
}
View Source
var KeyType_value = map[string]int32{
	"KT_UNKNOWN": 0,
	"KT_RSA":     1,
}

Functions

func RegisterCertificateManagementServer

func RegisterCertificateManagementServer(s *grpc.Server, srv CertificateManagementServer)

Types

type CSR

type CSR struct {
	// Type of certificate.
	Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"`
	// Bytes representing the CSR.
	// The exact encoding depends upon the type of certificate requested.
	// for X509: This should be the PEM encoded CSR.
	Csr                  []byte   `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Certificate Signing Request.

func (*CSR) Descriptor

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

func (*CSR) GetCsr

func (m *CSR) GetCsr() []byte

func (*CSR) GetType

func (m *CSR) GetType() CertificateType

func (*CSR) ProtoMessage

func (*CSR) ProtoMessage()

func (*CSR) Reset

func (m *CSR) Reset()

func (*CSR) String

func (m *CSR) String() string

func (*CSR) XXX_DiscardUnknown

func (m *CSR) XXX_DiscardUnknown()

func (*CSR) XXX_Marshal

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

func (*CSR) XXX_Merge

func (dst *CSR) XXX_Merge(src proto.Message)

func (*CSR) XXX_Size

func (m *CSR) XXX_Size() int

func (*CSR) XXX_Unmarshal

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

type CSRParams

type CSRParams struct {
	// The type of certificate which will be associated for this CSR.
	Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"`
	// Minimum size of the key to be used by the target when generating a
	// public/private key pair.
	MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"`
	// If provided, the target must use the provided key type. If the target
	// cannot use the algorithm specified in the key_type, it should cancel the
	// stream with an Unimplemented error.
	KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"`
	// --- common set of parameters applicable for any type of certificate --- //
	CommonName           string   `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"`
	Country              string   `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"`
	State                string   `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"`
	City                 string   `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"`
	Organization         string   `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"`
	OrganizationalUnit   string   `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"`
	IpAddress            string   `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	EmailId              string   `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Parameters to be used when generating a Certificate Signing Request.

func (*CSRParams) Descriptor

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

func (*CSRParams) GetCity

func (m *CSRParams) GetCity() string

func (*CSRParams) GetCommonName

func (m *CSRParams) GetCommonName() string

func (*CSRParams) GetCountry

func (m *CSRParams) GetCountry() string

func (*CSRParams) GetEmailId

func (m *CSRParams) GetEmailId() string

func (*CSRParams) GetIpAddress

func (m *CSRParams) GetIpAddress() string

func (*CSRParams) GetKeyType

func (m *CSRParams) GetKeyType() KeyType

func (*CSRParams) GetMinKeySize

func (m *CSRParams) GetMinKeySize() uint32

func (*CSRParams) GetOrganization

func (m *CSRParams) GetOrganization() string

func (*CSRParams) GetOrganizationalUnit

func (m *CSRParams) GetOrganizationalUnit() string

func (*CSRParams) GetState

func (m *CSRParams) GetState() string

func (*CSRParams) GetType

func (m *CSRParams) GetType() CertificateType

func (*CSRParams) ProtoMessage

func (*CSRParams) ProtoMessage()

func (*CSRParams) Reset

func (m *CSRParams) Reset()

func (*CSRParams) String

func (m *CSRParams) String() string

func (*CSRParams) XXX_DiscardUnknown

func (m *CSRParams) XXX_DiscardUnknown()

func (*CSRParams) XXX_Marshal

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

func (*CSRParams) XXX_Merge

func (dst *CSRParams) XXX_Merge(src proto.Message)

func (*CSRParams) XXX_Size

func (m *CSRParams) XXX_Size() int

func (*CSRParams) XXX_Unmarshal

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

type CanGenerateCSRRequest

type CanGenerateCSRRequest struct {
	KeyType              KeyType         `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"`
	CertificateType      CertificateType `` /* 145-byte string literal not displayed */
	KeySize              uint32          `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

A request to ask the target if it can generate key pairs.

func (*CanGenerateCSRRequest) Descriptor

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

func (*CanGenerateCSRRequest) GetCertificateType

func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType

func (*CanGenerateCSRRequest) GetKeySize

func (m *CanGenerateCSRRequest) GetKeySize() uint32

func (*CanGenerateCSRRequest) GetKeyType

func (m *CanGenerateCSRRequest) GetKeyType() KeyType

func (*CanGenerateCSRRequest) ProtoMessage

func (*CanGenerateCSRRequest) ProtoMessage()

func (*CanGenerateCSRRequest) Reset

func (m *CanGenerateCSRRequest) Reset()

func (*CanGenerateCSRRequest) String

func (m *CanGenerateCSRRequest) String() string

func (*CanGenerateCSRRequest) XXX_DiscardUnknown

func (m *CanGenerateCSRRequest) XXX_DiscardUnknown()

func (*CanGenerateCSRRequest) XXX_Marshal

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

func (*CanGenerateCSRRequest) XXX_Merge

func (dst *CanGenerateCSRRequest) XXX_Merge(src proto.Message)

func (*CanGenerateCSRRequest) XXX_Size

func (m *CanGenerateCSRRequest) XXX_Size() int

func (*CanGenerateCSRRequest) XXX_Unmarshal

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

type CanGenerateCSRResponse

type CanGenerateCSRResponse struct {
	CanGenerate          bool     `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response from the target about whether it can generate a CSR with the given parameters.

func (*CanGenerateCSRResponse) Descriptor

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

func (*CanGenerateCSRResponse) GetCanGenerate

func (m *CanGenerateCSRResponse) GetCanGenerate() bool

func (*CanGenerateCSRResponse) ProtoMessage

func (*CanGenerateCSRResponse) ProtoMessage()

func (*CanGenerateCSRResponse) Reset

func (m *CanGenerateCSRResponse) Reset()

func (*CanGenerateCSRResponse) String

func (m *CanGenerateCSRResponse) String() string

func (*CanGenerateCSRResponse) XXX_DiscardUnknown

func (m *CanGenerateCSRResponse) XXX_DiscardUnknown()

func (*CanGenerateCSRResponse) XXX_Marshal

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

func (*CanGenerateCSRResponse) XXX_Merge

func (dst *CanGenerateCSRResponse) XXX_Merge(src proto.Message)

func (*CanGenerateCSRResponse) XXX_Size

func (m *CanGenerateCSRResponse) XXX_Size() int

func (*CanGenerateCSRResponse) XXX_Unmarshal

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

type Certificate

type Certificate struct {
	// Type of certificate.
	Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"`
	// Actual certificate.
	// The exact encoding depends upon the type of certificate.
	// for X509, this should be a PEM encoded Certificate.
	Certificate          []byte   `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A certificate.

func (*Certificate) Descriptor

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

func (*Certificate) GetCertificate

func (m *Certificate) GetCertificate() []byte

func (*Certificate) GetType

func (m *Certificate) GetType() CertificateType

func (*Certificate) ProtoMessage

func (*Certificate) ProtoMessage()

func (*Certificate) Reset

func (m *Certificate) Reset()

func (*Certificate) String

func (m *Certificate) String() string

func (*Certificate) XXX_DiscardUnknown

func (m *Certificate) XXX_DiscardUnknown()

func (*Certificate) XXX_Marshal

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

func (*Certificate) XXX_Merge

func (dst *Certificate) XXX_Merge(src proto.Message)

func (*Certificate) XXX_Size

func (m *Certificate) XXX_Size() int

func (*Certificate) XXX_Unmarshal

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

type CertificateInfo

type CertificateInfo struct {
	CertificateId string       `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
	Certificate   *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// List of endpoints using this certificate.
	Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// System modification time when the certificate was installed/rotated in
	// nanoseconds since epoch.
	ModificationTime     int64    `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CertificateInfo) Descriptor

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

func (*CertificateInfo) GetCertificate

func (m *CertificateInfo) GetCertificate() *Certificate

func (*CertificateInfo) GetCertificateId

func (m *CertificateInfo) GetCertificateId() string

func (*CertificateInfo) GetEndpoints

func (m *CertificateInfo) GetEndpoints() []*Endpoint

func (*CertificateInfo) GetModificationTime

func (m *CertificateInfo) GetModificationTime() int64

func (*CertificateInfo) ProtoMessage

func (*CertificateInfo) ProtoMessage()

func (*CertificateInfo) Reset

func (m *CertificateInfo) Reset()

func (*CertificateInfo) String

func (m *CertificateInfo) String() string

func (*CertificateInfo) XXX_DiscardUnknown

func (m *CertificateInfo) XXX_DiscardUnknown()

func (*CertificateInfo) XXX_Marshal

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

func (*CertificateInfo) XXX_Merge

func (dst *CertificateInfo) XXX_Merge(src proto.Message)

func (*CertificateInfo) XXX_Size

func (m *CertificateInfo) XXX_Size() int

func (*CertificateInfo) XXX_Unmarshal

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

type CertificateManagementClient

type CertificateManagementClient interface {
	// Rotate will replace an existing Certificate on the target by creating a
	// new CSR request and placing the new Certificate based on the CSR on the
	// target. If the stream is broken or any steps in the process fail the
	// target must rollback to the original Certificate.
	//
	// The following describes the sequence of messages that must be exchanged
	// in the Rotate() RPC.
	//
	// Sequence of expected messages:
	// Case 1: When Target generates the CSR.
	//
	//   Step 1: Start the stream
	//     Client <---- Rotate() RPC stream begin ------> Target
	//
	//   Step 2: CSR
	//     Client -----> GenerateCSRRequest----> Target
	//     Client <----- GenerateCSRResponse <--- Target
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client --> LoadCertificateRequest ----> Target
	//     Client <-- LoadCertificateResponse <--- Target
	//
	//   Step 5: Test/Validation by the client.
	//     This step should be to create a new connection to the target using
	//     The new certificate and validate that the certificate works.
	//     Once verfied, the client will then proceed to finalize the rotation.
	//     If the new connection cannot be completed the client will cancel the
	//     RPC thereby forcing the target to rollback the certificate.
	//
	//   Step 6: Final commit.
	//     Client ---> FinalizeRequest ----> Target
	//
	//
	// Case 2: When Client generates the CSR.
	//   Step 1: Start the stream
	//     Client <---- Rotate() RPC stream begin ----> Target
	//
	//   Step 2: CSR
	//     Client generates its own certificate.
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client ---> LoadCertificateRequest ----> Target
	//     Client <--- LoadCertificateResponse <--- Target
	//
	//   Step 5: Test/Validation by the client.
	//
	//   Step 6: Final commit.
	//     Client ---> FinalizeRequest ----> Target
	Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error)
	// Install will put a new Certificate on the target by creating a new CSR
	// request and placing the new Certificate based on the CSR on the target.The
	// new Certificate will be associated with a new Certificate Id on the target.
	// If the target has a pre existing Certificate with the given Certificate Id,
	// the operation should fail.
	// If the stream is broken or any steps in the process fail the target must
	// revert any changes in state.
	//
	// The following describes the sequence of messages that must be exchanged
	// in the Install() RPC.
	//
	// Sequence of expected messages:
	// Case 1: When Target generates the CSR-------------------------:
	//
	//   Step 1: Start the stream
	//     Client <---- Install() RPC stream begin ------> Target
	//
	//   Step 2: CSR
	//     Client -----> GenerateCSRRequest() ----> Target
	//     Client <---- GenerateCSRResponse() <---- Target
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client -> LoadCertificateRequest() ----> Target
	//     Client <- LoadCertificateResponse() <--- Target
	//
	// Case 2: When Client generates the CSR-------------------------:
	//   Step 1: Start the stream
	//     Client <---- Install() RPC stream begin ------> Target
	//
	//   Step 2: CSR
	//     Client generates its own certificate.
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client -> LoadCertificateRequest() ----> Target
	//     Client <- LoadCertificateResponse() <--- Target
	//
	Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error)
	// An RPC to get the certificates on the target.
	GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error)
	// An RPC to revoke specific certificates.
	// If a certificate is not present on the target, the request should silently
	// succeed. Revoking a certificate should render the existing certificate
	// unusable by any endpoints.
	RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error)
	// An RPC to ask a target if it can generate a Certificate.
	CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error)
}

CertificateManagementClient is the client API for CertificateManagement service.

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

func NewCertificateManagementClient

func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementClient

type CertificateManagementServer

type CertificateManagementServer interface {
	// Rotate will replace an existing Certificate on the target by creating a
	// new CSR request and placing the new Certificate based on the CSR on the
	// target. If the stream is broken or any steps in the process fail the
	// target must rollback to the original Certificate.
	//
	// The following describes the sequence of messages that must be exchanged
	// in the Rotate() RPC.
	//
	// Sequence of expected messages:
	// Case 1: When Target generates the CSR.
	//
	//   Step 1: Start the stream
	//     Client <---- Rotate() RPC stream begin ------> Target
	//
	//   Step 2: CSR
	//     Client -----> GenerateCSRRequest----> Target
	//     Client <----- GenerateCSRResponse <--- Target
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client --> LoadCertificateRequest ----> Target
	//     Client <-- LoadCertificateResponse <--- Target
	//
	//   Step 5: Test/Validation by the client.
	//     This step should be to create a new connection to the target using
	//     The new certificate and validate that the certificate works.
	//     Once verfied, the client will then proceed to finalize the rotation.
	//     If the new connection cannot be completed the client will cancel the
	//     RPC thereby forcing the target to rollback the certificate.
	//
	//   Step 6: Final commit.
	//     Client ---> FinalizeRequest ----> Target
	//
	//
	// Case 2: When Client generates the CSR.
	//   Step 1: Start the stream
	//     Client <---- Rotate() RPC stream begin ----> Target
	//
	//   Step 2: CSR
	//     Client generates its own certificate.
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client ---> LoadCertificateRequest ----> Target
	//     Client <--- LoadCertificateResponse <--- Target
	//
	//   Step 5: Test/Validation by the client.
	//
	//   Step 6: Final commit.
	//     Client ---> FinalizeRequest ----> Target
	Rotate(CertificateManagement_RotateServer) error
	// Install will put a new Certificate on the target by creating a new CSR
	// request and placing the new Certificate based on the CSR on the target.The
	// new Certificate will be associated with a new Certificate Id on the target.
	// If the target has a pre existing Certificate with the given Certificate Id,
	// the operation should fail.
	// If the stream is broken or any steps in the process fail the target must
	// revert any changes in state.
	//
	// The following describes the sequence of messages that must be exchanged
	// in the Install() RPC.
	//
	// Sequence of expected messages:
	// Case 1: When Target generates the CSR-------------------------:
	//
	//   Step 1: Start the stream
	//     Client <---- Install() RPC stream begin ------> Target
	//
	//   Step 2: CSR
	//     Client -----> GenerateCSRRequest() ----> Target
	//     Client <---- GenerateCSRResponse() <---- Target
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client -> LoadCertificateRequest() ----> Target
	//     Client <- LoadCertificateResponse() <--- Target
	//
	// Case 2: When Client generates the CSR-------------------------:
	//   Step 1: Start the stream
	//     Client <---- Install() RPC stream begin ------> Target
	//
	//   Step 2: CSR
	//     Client generates its own certificate.
	//
	//   Step 3: Certificate Signing
	//     Client gets the certificate signed by the CA.
	//
	//   Step 4: Send Certificate to Target.
	//     Client -> LoadCertificateRequest() ----> Target
	//     Client <- LoadCertificateResponse() <--- Target
	//
	Install(CertificateManagement_InstallServer) error
	// An RPC to get the certificates on the target.
	GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error)
	// An RPC to revoke specific certificates.
	// If a certificate is not present on the target, the request should silently
	// succeed. Revoking a certificate should render the existing certificate
	// unusable by any endpoints.
	RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error)
	// An RPC to ask a target if it can generate a Certificate.
	CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error)
}

CertificateManagementServer is the server API for CertificateManagement service.

type CertificateManagement_InstallClient

type CertificateManagement_InstallClient interface {
	Send(*InstallCertificateRequest) error
	Recv() (*InstallCertificateResponse, error)
	grpc.ClientStream
}

type CertificateManagement_InstallServer

type CertificateManagement_InstallServer interface {
	Send(*InstallCertificateResponse) error
	Recv() (*InstallCertificateRequest, error)
	grpc.ServerStream
}

type CertificateManagement_RotateClient

type CertificateManagement_RotateClient interface {
	Send(*RotateCertificateRequest) error
	Recv() (*RotateCertificateResponse, error)
	grpc.ClientStream
}

type CertificateManagement_RotateServer

type CertificateManagement_RotateServer interface {
	Send(*RotateCertificateResponse) error
	Recv() (*RotateCertificateRequest, error)
	grpc.ServerStream
}

type CertificateRevocationError

type CertificateRevocationError struct {
	CertificateId        string   `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
	ErrorMessage         string   `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An error message indicating why a certificate id could not be revoked.

func (*CertificateRevocationError) Descriptor

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

func (*CertificateRevocationError) GetCertificateId

func (m *CertificateRevocationError) GetCertificateId() string

func (*CertificateRevocationError) GetErrorMessage

func (m *CertificateRevocationError) GetErrorMessage() string

func (*CertificateRevocationError) ProtoMessage

func (*CertificateRevocationError) ProtoMessage()

func (*CertificateRevocationError) Reset

func (m *CertificateRevocationError) Reset()

func (*CertificateRevocationError) String

func (m *CertificateRevocationError) String() string

func (*CertificateRevocationError) XXX_DiscardUnknown

func (m *CertificateRevocationError) XXX_DiscardUnknown()

func (*CertificateRevocationError) XXX_Marshal

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

func (*CertificateRevocationError) XXX_Merge

func (dst *CertificateRevocationError) XXX_Merge(src proto.Message)

func (*CertificateRevocationError) XXX_Size

func (m *CertificateRevocationError) XXX_Size() int

func (*CertificateRevocationError) XXX_Unmarshal

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

type CertificateType

type CertificateType int32

Types of certificates.

const (
	// 1 - 500 for public use.
	// 501 onwards for private use.
	CertificateType_CT_UNKNOWN CertificateType = 0
	CertificateType_CT_X509    CertificateType = 1
)

func (CertificateType) EnumDescriptor

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

func (CertificateType) String

func (x CertificateType) String() string

type Endpoint

type Endpoint struct {
	Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"`
	// Human readable identifier for an endpoint.
	Endpoint             string   `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An endpoint represents an entity on the target which can use a certificate.

func (*Endpoint) Descriptor

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

func (*Endpoint) GetEndpoint

func (m *Endpoint) GetEndpoint() string

func (*Endpoint) GetType

func (m *Endpoint) GetType() Endpoint_Type

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) String

func (m *Endpoint) String() string

func (*Endpoint) XXX_DiscardUnknown

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal

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

func (*Endpoint) XXX_Merge

func (dst *Endpoint) XXX_Merge(src proto.Message)

func (*Endpoint) XXX_Size

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal

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

type Endpoint_Type

type Endpoint_Type int32

Type of endpoint that can use a cert. This list is to be extended based on conversation with vendors.

const (
	Endpoint_EP_UNSPECIFIED  Endpoint_Type = 0
	Endpoint_EP_IPSEC_TUNNEL Endpoint_Type = 1
	Endpoint_EP_DAEMON       Endpoint_Type = 2
)

func (Endpoint_Type) EnumDescriptor

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

func (Endpoint_Type) String

func (x Endpoint_Type) String() string

type FinalizeRequest

type FinalizeRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Finalize message is sent to the target to confirm the Rotation of the certificate and that the certificate should not be rolled back when the RPC concludes. The certificate must be rolled back if the target returns an error after receiving a Finalize message.

func (*FinalizeRequest) Descriptor

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

func (*FinalizeRequest) ProtoMessage

func (*FinalizeRequest) ProtoMessage()

func (*FinalizeRequest) Reset

func (m *FinalizeRequest) Reset()

func (*FinalizeRequest) String

func (m *FinalizeRequest) String() string

func (*FinalizeRequest) XXX_DiscardUnknown

func (m *FinalizeRequest) XXX_DiscardUnknown()

func (*FinalizeRequest) XXX_Marshal

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

func (*FinalizeRequest) XXX_Merge

func (dst *FinalizeRequest) XXX_Merge(src proto.Message)

func (*FinalizeRequest) XXX_Size

func (m *FinalizeRequest) XXX_Size() int

func (*FinalizeRequest) XXX_Unmarshal

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

type GenerateCSRRequest

type GenerateCSRRequest struct {
	// Parameters for creating a CSR.
	CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"`
	// The certificate id with which this CSR will be associated. The target
	// configuration should bind an entity which wants to use a certificate to
	// the certificate_id it should use.
	CertificateId        string   `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to generate the CSR. When this request is made for rotating an existing certificate as part of the Rotate() RPC, then the target must ensure that the "certificate_id" is already created and exists on the target. If the Certificate Rotation proceeds to load the certificate, it must associate the new certificate with the previously created "certificate_id".

When this request is made for installing a completely new certificate as part of the Install() RPC , then the target must ensure that the "certificate_id" is completely new and no entities on the target are should be bound to this certificate_id. If any existing certificate matches the certificate_id, then this request should fail.

If there is another ongoing Rotate/Install RPC with the same certificate_id, the GenerateCSRRequest should fail.

func (*GenerateCSRRequest) Descriptor

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

func (*GenerateCSRRequest) GetCertificateId

func (m *GenerateCSRRequest) GetCertificateId() string

func (*GenerateCSRRequest) GetCsrParams

func (m *GenerateCSRRequest) GetCsrParams() *CSRParams

func (*GenerateCSRRequest) ProtoMessage

func (*GenerateCSRRequest) ProtoMessage()

func (*GenerateCSRRequest) Reset

func (m *GenerateCSRRequest) Reset()

func (*GenerateCSRRequest) String

func (m *GenerateCSRRequest) String() string

func (*GenerateCSRRequest) XXX_DiscardUnknown

func (m *GenerateCSRRequest) XXX_DiscardUnknown()

func (*GenerateCSRRequest) XXX_Marshal

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

func (*GenerateCSRRequest) XXX_Merge

func (dst *GenerateCSRRequest) XXX_Merge(src proto.Message)

func (*GenerateCSRRequest) XXX_Size

func (m *GenerateCSRRequest) XXX_Size() int

func (*GenerateCSRRequest) XXX_Unmarshal

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

type GenerateCSRResponse

type GenerateCSRResponse struct {
	Csr                  *CSR     `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GenerateCSRResponse contains the CSR associated with the Certificate ID supplied in the GenerateCSRRequest. When a Certificate is subsequently installed on the target in the same streaming RPC session, it must be associated to that Certificate ID.

An Unimplemented error will be returned if the target cannot generate a CSR as per the request. In this case, the caller must generate its own key pair.

func (*GenerateCSRResponse) Descriptor

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

func (*GenerateCSRResponse) GetCsr

func (m *GenerateCSRResponse) GetCsr() *CSR

func (*GenerateCSRResponse) ProtoMessage

func (*GenerateCSRResponse) ProtoMessage()

func (*GenerateCSRResponse) Reset

func (m *GenerateCSRResponse) Reset()

func (*GenerateCSRResponse) String

func (m *GenerateCSRResponse) String() string

func (*GenerateCSRResponse) XXX_DiscardUnknown

func (m *GenerateCSRResponse) XXX_DiscardUnknown()

func (*GenerateCSRResponse) XXX_Marshal

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

func (*GenerateCSRResponse) XXX_Merge

func (dst *GenerateCSRResponse) XXX_Merge(src proto.Message)

func (*GenerateCSRResponse) XXX_Size

func (m *GenerateCSRResponse) XXX_Size() int

func (*GenerateCSRResponse) XXX_Unmarshal

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

type GetCertificatesRequest

type GetCertificatesRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request to query all the certificates on the target.

func (*GetCertificatesRequest) Descriptor

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

func (*GetCertificatesRequest) ProtoMessage

func (*GetCertificatesRequest) ProtoMessage()

func (*GetCertificatesRequest) Reset

func (m *GetCertificatesRequest) Reset()

func (*GetCertificatesRequest) String

func (m *GetCertificatesRequest) String() string

func (*GetCertificatesRequest) XXX_DiscardUnknown

func (m *GetCertificatesRequest) XXX_DiscardUnknown()

func (*GetCertificatesRequest) XXX_Marshal

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

func (*GetCertificatesRequest) XXX_Merge

func (dst *GetCertificatesRequest) XXX_Merge(src proto.Message)

func (*GetCertificatesRequest) XXX_Size

func (m *GetCertificatesRequest) XXX_Size() int

func (*GetCertificatesRequest) XXX_Unmarshal

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

type GetCertificatesResponse

type GetCertificatesResponse struct {
	CertificateInfo      []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Response from the target about the certificates that exist on the target what what is using them.

func (*GetCertificatesResponse) Descriptor

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

func (*GetCertificatesResponse) GetCertificateInfo

func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo

func (*GetCertificatesResponse) ProtoMessage

func (*GetCertificatesResponse) ProtoMessage()

func (*GetCertificatesResponse) Reset

func (m *GetCertificatesResponse) Reset()

func (*GetCertificatesResponse) String

func (m *GetCertificatesResponse) String() string

func (*GetCertificatesResponse) XXX_DiscardUnknown

func (m *GetCertificatesResponse) XXX_DiscardUnknown()

func (*GetCertificatesResponse) XXX_Marshal

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

func (*GetCertificatesResponse) XXX_Merge

func (dst *GetCertificatesResponse) XXX_Merge(src proto.Message)

func (*GetCertificatesResponse) XXX_Size

func (m *GetCertificatesResponse) XXX_Size() int

func (*GetCertificatesResponse) XXX_Unmarshal

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

type InstallCertificateRequest

type InstallCertificateRequest struct {
	// Request Messages.
	//
	// Types that are valid to be assigned to InstallRequest:
	//	*InstallCertificateRequest_GenerateCsr
	//	*InstallCertificateRequest_LoadCertificate
	InstallRequest       isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

Request messages to install new certificates on the target.

func (*InstallCertificateRequest) Descriptor

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

func (*InstallCertificateRequest) GetGenerateCsr

func (m *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest

func (*InstallCertificateRequest) GetInstallRequest

func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest

func (*InstallCertificateRequest) GetLoadCertificate

func (m *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest

func (*InstallCertificateRequest) ProtoMessage

func (*InstallCertificateRequest) ProtoMessage()

func (*InstallCertificateRequest) Reset

func (m *InstallCertificateRequest) Reset()

func (*InstallCertificateRequest) String

func (m *InstallCertificateRequest) String() string

func (*InstallCertificateRequest) XXX_DiscardUnknown

func (m *InstallCertificateRequest) XXX_DiscardUnknown()

func (*InstallCertificateRequest) XXX_Marshal

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

func (*InstallCertificateRequest) XXX_Merge

func (dst *InstallCertificateRequest) XXX_Merge(src proto.Message)

func (*InstallCertificateRequest) XXX_OneofFuncs

func (*InstallCertificateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*InstallCertificateRequest) XXX_Size

func (m *InstallCertificateRequest) XXX_Size() int

func (*InstallCertificateRequest) XXX_Unmarshal

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

type InstallCertificateRequest_GenerateCsr

type InstallCertificateRequest_GenerateCsr struct {
	GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"`
}

type InstallCertificateRequest_LoadCertificate

type InstallCertificateRequest_LoadCertificate struct {
	LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"`
}

type InstallCertificateResponse

type InstallCertificateResponse struct {
	// Response messages.
	//
	// Types that are valid to be assigned to InstallResponse:
	//	*InstallCertificateResponse_GeneratedCsr
	//	*InstallCertificateResponse_LoadCertificate
	InstallResponse      isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"`
	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
	XXX_unrecognized     []byte                                       `json:"-"`
	XXX_sizecache        int32                                        `json:"-"`
}

Response Messages from the target for the InstallCertificateRequest.

func (*InstallCertificateResponse) Descriptor

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

func (*InstallCertificateResponse) GetGeneratedCsr

func (m *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse

func (*InstallCertificateResponse) GetInstallResponse

func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse

func (*InstallCertificateResponse) GetLoadCertificate

func (m *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse

func (*InstallCertificateResponse) ProtoMessage

func (*InstallCertificateResponse) ProtoMessage()

func (*InstallCertificateResponse) Reset

func (m *InstallCertificateResponse) Reset()

func (*InstallCertificateResponse) String

func (m *InstallCertificateResponse) String() string

func (*InstallCertificateResponse) XXX_DiscardUnknown

func (m *InstallCertificateResponse) XXX_DiscardUnknown()

func (*InstallCertificateResponse) XXX_Marshal

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

func (*InstallCertificateResponse) XXX_Merge

func (dst *InstallCertificateResponse) XXX_Merge(src proto.Message)

func (*InstallCertificateResponse) XXX_OneofFuncs

func (*InstallCertificateResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*InstallCertificateResponse) XXX_Size

func (m *InstallCertificateResponse) XXX_Size() int

func (*InstallCertificateResponse) XXX_Unmarshal

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

type InstallCertificateResponse_GeneratedCsr

type InstallCertificateResponse_GeneratedCsr struct {
	GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"`
}

type InstallCertificateResponse_LoadCertificate

type InstallCertificateResponse_LoadCertificate struct {
	LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"`
}

type KeyPair

type KeyPair struct {
	PrivateKey           []byte   `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	PublicKey            []byte   `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A message representing a pair of public/private keys.

func (*KeyPair) Descriptor

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

func (*KeyPair) GetPrivateKey

func (m *KeyPair) GetPrivateKey() []byte

func (*KeyPair) GetPublicKey

func (m *KeyPair) GetPublicKey() []byte

func (*KeyPair) ProtoMessage

func (*KeyPair) ProtoMessage()

func (*KeyPair) Reset

func (m *KeyPair) Reset()

func (*KeyPair) String

func (m *KeyPair) String() string

func (*KeyPair) XXX_DiscardUnknown

func (m *KeyPair) XXX_DiscardUnknown()

func (*KeyPair) XXX_Marshal

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

func (*KeyPair) XXX_Merge

func (dst *KeyPair) XXX_Merge(src proto.Message)

func (*KeyPair) XXX_Size

func (m *KeyPair) XXX_Size() int

func (*KeyPair) XXX_Unmarshal

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

type KeyType

type KeyType int32

Algorithm to be used for generation the key pair.

const (
	// 1 - 500, for known types.
	// 501 and onwards for private use.
	KeyType_KT_UNKNOWN KeyType = 0
	KeyType_KT_RSA     KeyType = 1
)

func (KeyType) EnumDescriptor

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

func (KeyType) String

func (x KeyType) String() string

type LoadCertificateRequest

type LoadCertificateRequest struct {
	// The certificate to be Loaded on the target.
	Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// The key pair to be used with the certificate. This is provided in the event
	// that the target cannot generate a CSR (and the corresponding public/private
	// keys).
	KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"`
	// Certificate Id of the above certificate. This is to be provided only when
	// there is an externally generated key pair.
	CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
	// Optional pool of CA certificates to be used for authenticating the client.
	CaCertificate        []*Certificate `protobuf:"bytes,4,rep,name=ca_certificate,json=caCertificate,proto3" json:"ca_certificate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

LoadCertificateRequest instructs the target to store the given certificate.

Case 1: Target Generated CSR and Key Pair. If the target generated the CSR (and the public/private key pair) during the GenerateCSR request, then the target must associate the certificate with the certificate ID specified in the preceding GenerateCSR request.

Case 2: Externally Generated Key Pair. If the target can not generate a CSR, then the public/private key pair is generated externally. In this case provide the target with the key pair, and the certificate_id to be associated with the new certificate.

If there is another ongoing Rotate/Install RPC with the same certificate_id, the LoadCertificateRequest must fail.

func (*LoadCertificateRequest) Descriptor

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

func (*LoadCertificateRequest) GetCaCertificate

func (m *LoadCertificateRequest) GetCaCertificate() []*Certificate

func (*LoadCertificateRequest) GetCertificate

func (m *LoadCertificateRequest) GetCertificate() *Certificate

func (*LoadCertificateRequest) GetCertificateId

func (m *LoadCertificateRequest) GetCertificateId() string

func (*LoadCertificateRequest) GetKeyPair

func (m *LoadCertificateRequest) GetKeyPair() *KeyPair

func (*LoadCertificateRequest) ProtoMessage

func (*LoadCertificateRequest) ProtoMessage()

func (*LoadCertificateRequest) Reset

func (m *LoadCertificateRequest) Reset()

func (*LoadCertificateRequest) String

func (m *LoadCertificateRequest) String() string

func (*LoadCertificateRequest) XXX_DiscardUnknown

func (m *LoadCertificateRequest) XXX_DiscardUnknown()

func (*LoadCertificateRequest) XXX_Marshal

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

func (*LoadCertificateRequest) XXX_Merge

func (dst *LoadCertificateRequest) XXX_Merge(src proto.Message)

func (*LoadCertificateRequest) XXX_Size

func (m *LoadCertificateRequest) XXX_Size() int

func (*LoadCertificateRequest) XXX_Unmarshal

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

type LoadCertificateResponse

type LoadCertificateResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response from target after Loading a Certificate. If the target could not load the certificate, it must end the RPC stream with a suitable RPC error about why the Certificate was not loaded.

func (*LoadCertificateResponse) Descriptor

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

func (*LoadCertificateResponse) ProtoMessage

func (*LoadCertificateResponse) ProtoMessage()

func (*LoadCertificateResponse) Reset

func (m *LoadCertificateResponse) Reset()

func (*LoadCertificateResponse) String

func (m *LoadCertificateResponse) String() string

func (*LoadCertificateResponse) XXX_DiscardUnknown

func (m *LoadCertificateResponse) XXX_DiscardUnknown()

func (*LoadCertificateResponse) XXX_Marshal

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

func (*LoadCertificateResponse) XXX_Merge

func (dst *LoadCertificateResponse) XXX_Merge(src proto.Message)

func (*LoadCertificateResponse) XXX_Size

func (m *LoadCertificateResponse) XXX_Size() int

func (*LoadCertificateResponse) XXX_Unmarshal

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

type RevokeCertificatesRequest

type RevokeCertificatesRequest struct {
	// Certificates to revoke.
	CertificateId        []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RevokeCertificatesRequest) Descriptor

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

func (*RevokeCertificatesRequest) GetCertificateId

func (m *RevokeCertificatesRequest) GetCertificateId() []string

func (*RevokeCertificatesRequest) ProtoMessage

func (*RevokeCertificatesRequest) ProtoMessage()

func (*RevokeCertificatesRequest) Reset

func (m *RevokeCertificatesRequest) Reset()

func (*RevokeCertificatesRequest) String

func (m *RevokeCertificatesRequest) String() string

func (*RevokeCertificatesRequest) XXX_DiscardUnknown

func (m *RevokeCertificatesRequest) XXX_DiscardUnknown()

func (*RevokeCertificatesRequest) XXX_Marshal

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

func (*RevokeCertificatesRequest) XXX_Merge

func (dst *RevokeCertificatesRequest) XXX_Merge(src proto.Message)

func (*RevokeCertificatesRequest) XXX_Size

func (m *RevokeCertificatesRequest) XXX_Size() int

func (*RevokeCertificatesRequest) XXX_Unmarshal

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

type RevokeCertificatesResponse

type RevokeCertificatesResponse struct {
	// List of certificates successfully revoked.
	RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"`
	// List of errors why certain certificates could not be revoked.
	CertificateRevocationError []*CertificateRevocationError `` /* 141-byte string literal not displayed */
	XXX_NoUnkeyedLiteral       struct{}                      `json:"-"`
	XXX_unrecognized           []byte                        `json:"-"`
	XXX_sizecache              int32                         `json:"-"`
}

func (*RevokeCertificatesResponse) Descriptor

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

func (*RevokeCertificatesResponse) GetCertificateRevocationError

func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError

func (*RevokeCertificatesResponse) GetRevokedCertificateId

func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string

func (*RevokeCertificatesResponse) ProtoMessage

func (*RevokeCertificatesResponse) ProtoMessage()

func (*RevokeCertificatesResponse) Reset

func (m *RevokeCertificatesResponse) Reset()

func (*RevokeCertificatesResponse) String

func (m *RevokeCertificatesResponse) String() string

func (*RevokeCertificatesResponse) XXX_DiscardUnknown

func (m *RevokeCertificatesResponse) XXX_DiscardUnknown()

func (*RevokeCertificatesResponse) XXX_Marshal

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

func (*RevokeCertificatesResponse) XXX_Merge

func (dst *RevokeCertificatesResponse) XXX_Merge(src proto.Message)

func (*RevokeCertificatesResponse) XXX_Size

func (m *RevokeCertificatesResponse) XXX_Size() int

func (*RevokeCertificatesResponse) XXX_Unmarshal

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

type RotateCertificateRequest

type RotateCertificateRequest struct {
	// Request Messages.
	//
	// Types that are valid to be assigned to RotateRequest:
	//	*RotateCertificateRequest_GenerateCsr
	//	*RotateCertificateRequest_LoadCertificate
	//	*RotateCertificateRequest_FinalizeRotation
	RotateRequest        isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"`
	XXX_NoUnkeyedLiteral struct{}                                 `json:"-"`
	XXX_unrecognized     []byte                                   `json:"-"`
	XXX_sizecache        int32                                    `json:"-"`
}

Request messages to rotate existing certificates on the target.

func (*RotateCertificateRequest) Descriptor

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

func (*RotateCertificateRequest) GetFinalizeRotation

func (m *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest

func (*RotateCertificateRequest) GetGenerateCsr

func (m *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest

func (*RotateCertificateRequest) GetLoadCertificate

func (m *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest

func (*RotateCertificateRequest) GetRotateRequest

func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest

func (*RotateCertificateRequest) ProtoMessage

func (*RotateCertificateRequest) ProtoMessage()

func (*RotateCertificateRequest) Reset

func (m *RotateCertificateRequest) Reset()

func (*RotateCertificateRequest) String

func (m *RotateCertificateRequest) String() string

func (*RotateCertificateRequest) XXX_DiscardUnknown

func (m *RotateCertificateRequest) XXX_DiscardUnknown()

func (*RotateCertificateRequest) XXX_Marshal

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

func (*RotateCertificateRequest) XXX_Merge

func (dst *RotateCertificateRequest) XXX_Merge(src proto.Message)

func (*RotateCertificateRequest) XXX_OneofFuncs

func (*RotateCertificateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*RotateCertificateRequest) XXX_Size

func (m *RotateCertificateRequest) XXX_Size() int

func (*RotateCertificateRequest) XXX_Unmarshal

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

type RotateCertificateRequest_FinalizeRotation

type RotateCertificateRequest_FinalizeRotation struct {
	FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"`
}

type RotateCertificateRequest_GenerateCsr

type RotateCertificateRequest_GenerateCsr struct {
	GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"`
}

type RotateCertificateRequest_LoadCertificate

type RotateCertificateRequest_LoadCertificate struct {
	LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"`
}

type RotateCertificateResponse

type RotateCertificateResponse struct {
	// Response messages.
	//
	// Types that are valid to be assigned to RotateResponse:
	//	*RotateCertificateResponse_GeneratedCsr
	//	*RotateCertificateResponse_LoadCertificate
	RotateResponse       isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

Response Messages from the target.

func (*RotateCertificateResponse) Descriptor

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

func (*RotateCertificateResponse) GetGeneratedCsr

func (m *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse

func (*RotateCertificateResponse) GetLoadCertificate

func (m *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse

func (*RotateCertificateResponse) GetRotateResponse

func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse

func (*RotateCertificateResponse) ProtoMessage

func (*RotateCertificateResponse) ProtoMessage()

func (*RotateCertificateResponse) Reset

func (m *RotateCertificateResponse) Reset()

func (*RotateCertificateResponse) String

func (m *RotateCertificateResponse) String() string

func (*RotateCertificateResponse) XXX_DiscardUnknown

func (m *RotateCertificateResponse) XXX_DiscardUnknown()

func (*RotateCertificateResponse) XXX_Marshal

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

func (*RotateCertificateResponse) XXX_Merge

func (dst *RotateCertificateResponse) XXX_Merge(src proto.Message)

func (*RotateCertificateResponse) XXX_OneofFuncs

func (*RotateCertificateResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*RotateCertificateResponse) XXX_Size

func (m *RotateCertificateResponse) XXX_Size() int

func (*RotateCertificateResponse) XXX_Unmarshal

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

type RotateCertificateResponse_GeneratedCsr

type RotateCertificateResponse_GeneratedCsr struct {
	GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"`
}

type RotateCertificateResponse_LoadCertificate

type RotateCertificateResponse_LoadCertificate struct {
	LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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