v1alpha1

package
v0.0.0-...-3d58313 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCa = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCa   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterIstioCertificateServiceServer

func RegisterIstioCertificateServiceServer(s *grpc.Server, srv IstioCertificateServiceServer)

Types

type IstioCertificateRequest

type IstioCertificateRequest struct {
	// PEM-encoded certificate request.
	// The public key in the CSR is used to generate the certificate,
	// and other fields in the generated certificate may be overwritten by the CA.
	Csr string `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
	// Optional: requested certificate validity period, in seconds.
	ValidityDuration     int64    `protobuf:"varint,3,opt,name=validity_duration,json=validityDuration,proto3" json:"validity_duration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Certificate request message. The authentication should be based on: 1. Bearer tokens carried in the side channel; 2. Client-side certificate via Mutual TLS handshake. Note: the service implementation is REQUIRED to verify the authenticated caller is authorize to all SANs in the CSR. The server side may overwrite any requested certificate field based on its policies.

func (*IstioCertificateRequest) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioCertificateRequest. Required by controller-gen.

func (*IstioCertificateRequest) DeepCopyInto

func (in *IstioCertificateRequest) DeepCopyInto(out *IstioCertificateRequest)

DeepCopyInto supports using IstioCertificateRequest within kubernetes types, where deepcopy-gen is used.

func (*IstioCertificateRequest) Descriptor

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

func (*IstioCertificateRequest) GetCsr

func (m *IstioCertificateRequest) GetCsr() string

func (*IstioCertificateRequest) GetValidityDuration

func (m *IstioCertificateRequest) GetValidityDuration() int64

func (*IstioCertificateRequest) Marshal

func (m *IstioCertificateRequest) Marshal() (dAtA []byte, err error)

func (*IstioCertificateRequest) MarshalJSON

func (this *IstioCertificateRequest) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioCertificateRequest

func (*IstioCertificateRequest) MarshalTo

func (m *IstioCertificateRequest) MarshalTo(dAtA []byte) (int, error)

func (*IstioCertificateRequest) MarshalToSizedBuffer

func (m *IstioCertificateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IstioCertificateRequest) ProtoMessage

func (*IstioCertificateRequest) ProtoMessage()

func (*IstioCertificateRequest) Reset

func (m *IstioCertificateRequest) Reset()

func (*IstioCertificateRequest) Size

func (m *IstioCertificateRequest) Size() (n int)

func (*IstioCertificateRequest) String

func (m *IstioCertificateRequest) String() string

func (*IstioCertificateRequest) Unmarshal

func (m *IstioCertificateRequest) Unmarshal(dAtA []byte) error

func (*IstioCertificateRequest) UnmarshalJSON

func (this *IstioCertificateRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioCertificateRequest

func (*IstioCertificateRequest) XXX_DiscardUnknown

func (m *IstioCertificateRequest) XXX_DiscardUnknown()

func (*IstioCertificateRequest) XXX_Marshal

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

func (*IstioCertificateRequest) XXX_Merge

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

func (*IstioCertificateRequest) XXX_Size

func (m *IstioCertificateRequest) XXX_Size() int

func (*IstioCertificateRequest) XXX_Unmarshal

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

type IstioCertificateResponse

type IstioCertificateResponse struct {
	// PEM-encoded certificate chain.
	// The leaf cert is the first element, and the root cert is the last element.
	CertChain            []string `protobuf:"bytes,1,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Certificate response message.

func (*IstioCertificateResponse) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioCertificateResponse. Required by controller-gen.

func (*IstioCertificateResponse) DeepCopyInto

func (in *IstioCertificateResponse) DeepCopyInto(out *IstioCertificateResponse)

DeepCopyInto supports using IstioCertificateResponse within kubernetes types, where deepcopy-gen is used.

func (*IstioCertificateResponse) Descriptor

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

func (*IstioCertificateResponse) GetCertChain

func (m *IstioCertificateResponse) GetCertChain() []string

func (*IstioCertificateResponse) Marshal

func (m *IstioCertificateResponse) Marshal() (dAtA []byte, err error)

func (*IstioCertificateResponse) MarshalJSON

func (this *IstioCertificateResponse) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioCertificateResponse

func (*IstioCertificateResponse) MarshalTo

func (m *IstioCertificateResponse) MarshalTo(dAtA []byte) (int, error)

func (*IstioCertificateResponse) MarshalToSizedBuffer

func (m *IstioCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IstioCertificateResponse) ProtoMessage

func (*IstioCertificateResponse) ProtoMessage()

func (*IstioCertificateResponse) Reset

func (m *IstioCertificateResponse) Reset()

func (*IstioCertificateResponse) Size

func (m *IstioCertificateResponse) Size() (n int)

func (*IstioCertificateResponse) String

func (m *IstioCertificateResponse) String() string

func (*IstioCertificateResponse) Unmarshal

func (m *IstioCertificateResponse) Unmarshal(dAtA []byte) error

func (*IstioCertificateResponse) UnmarshalJSON

func (this *IstioCertificateResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioCertificateResponse

func (*IstioCertificateResponse) XXX_DiscardUnknown

func (m *IstioCertificateResponse) XXX_DiscardUnknown()

func (*IstioCertificateResponse) XXX_Marshal

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

func (*IstioCertificateResponse) XXX_Merge

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

func (*IstioCertificateResponse) XXX_Size

func (m *IstioCertificateResponse) XXX_Size() int

func (*IstioCertificateResponse) XXX_Unmarshal

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

type IstioCertificateServiceClient

type IstioCertificateServiceClient interface {
	// Using provided CSR, returns a signed certificate.
	CreateCertificate(ctx context.Context, in *IstioCertificateRequest, opts ...grpc.CallOption) (*IstioCertificateResponse, error)
}

IstioCertificateServiceClient is the client API for IstioCertificateService service.

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

func NewIstioCertificateServiceClient

func NewIstioCertificateServiceClient(cc *grpc.ClientConn) IstioCertificateServiceClient

type IstioCertificateServiceServer

type IstioCertificateServiceServer interface {
	// Using provided CSR, returns a signed certificate.
	CreateCertificate(context.Context, *IstioCertificateRequest) (*IstioCertificateResponse, error)
}

IstioCertificateServiceServer is the server API for IstioCertificateService service.

type UnimplementedIstioCertificateServiceServer

type UnimplementedIstioCertificateServiceServer struct {
}

UnimplementedIstioCertificateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedIstioCertificateServiceServer) CreateCertificate

Jump to

Keyboard shortcuts

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