Documentation ¶
Overview ¶
Package certificate is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCertificateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCertificateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CertificateServiceClient) error
- func RegisterCertificateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCertificateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CertificateServiceServer) error
- func RegisterCertificateServiceServer(s *grpc.Server, srv CertificateServiceServer)
- type CertificateServiceClient
- type CertificateServiceServer
- type RepositoryCertificateCreateRequest
- func (*RepositoryCertificateCreateRequest) Descriptor() ([]byte, []int)
- func (m *RepositoryCertificateCreateRequest) GetCertificates() *v1alpha1.RepositoryCertificateList
- func (m *RepositoryCertificateCreateRequest) GetUpsert() bool
- func (m *RepositoryCertificateCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *RepositoryCertificateCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RepositoryCertificateCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RepositoryCertificateCreateRequest) ProtoMessage()
- func (m *RepositoryCertificateCreateRequest) Reset()
- func (m *RepositoryCertificateCreateRequest) Size() (n int)
- func (m *RepositoryCertificateCreateRequest) String() string
- func (m *RepositoryCertificateCreateRequest) Unmarshal(dAtA []byte) error
- func (m *RepositoryCertificateCreateRequest) XXX_DiscardUnknown()
- func (m *RepositoryCertificateCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepositoryCertificateCreateRequest) XXX_Merge(src proto.Message)
- func (m *RepositoryCertificateCreateRequest) XXX_Size() int
- func (m *RepositoryCertificateCreateRequest) XXX_Unmarshal(b []byte) error
- type RepositoryCertificateQuery
- func (*RepositoryCertificateQuery) Descriptor() ([]byte, []int)
- func (m *RepositoryCertificateQuery) GetCertSubType() string
- func (m *RepositoryCertificateQuery) GetCertType() string
- func (m *RepositoryCertificateQuery) GetHostNamePattern() string
- func (m *RepositoryCertificateQuery) Marshal() (dAtA []byte, err error)
- func (m *RepositoryCertificateQuery) MarshalTo(dAtA []byte) (int, error)
- func (m *RepositoryCertificateQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RepositoryCertificateQuery) ProtoMessage()
- func (m *RepositoryCertificateQuery) Reset()
- func (m *RepositoryCertificateQuery) Size() (n int)
- func (m *RepositoryCertificateQuery) String() string
- func (m *RepositoryCertificateQuery) Unmarshal(dAtA []byte) error
- func (m *RepositoryCertificateQuery) XXX_DiscardUnknown()
- func (m *RepositoryCertificateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepositoryCertificateQuery) XXX_Merge(src proto.Message)
- func (m *RepositoryCertificateQuery) XXX_Size() int
- func (m *RepositoryCertificateQuery) XXX_Unmarshal(b []byte) error
- type RepositoryCertificateResponse
- func (*RepositoryCertificateResponse) Descriptor() ([]byte, []int)
- func (m *RepositoryCertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *RepositoryCertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RepositoryCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RepositoryCertificateResponse) ProtoMessage()
- func (m *RepositoryCertificateResponse) Reset()
- func (m *RepositoryCertificateResponse) Size() (n int)
- func (m *RepositoryCertificateResponse) String() string
- func (m *RepositoryCertificateResponse) Unmarshal(dAtA []byte) error
- func (m *RepositoryCertificateResponse) XXX_DiscardUnknown()
- func (m *RepositoryCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepositoryCertificateResponse) XXX_Merge(src proto.Message)
- func (m *RepositoryCertificateResponse) XXX_Size() int
- func (m *RepositoryCertificateResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedCertificateServiceServer
- func (*UnimplementedCertificateServiceServer) CreateCertificate(ctx context.Context, req *RepositoryCertificateCreateRequest) (*v1alpha1.RepositoryCertificateList, error)
- func (*UnimplementedCertificateServiceServer) DeleteCertificate(ctx context.Context, req *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error)
- func (*UnimplementedCertificateServiceServer) ListCertificates(ctx context.Context, req *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterCertificateServiceHandler ¶
func RegisterCertificateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCertificateServiceHandler registers the http handlers for service CertificateService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCertificateServiceHandlerClient ¶
func RegisterCertificateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CertificateServiceClient) error
RegisterCertificateServiceHandlerClient registers the http handlers for service CertificateService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CertificateServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CertificateServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CertificateServiceClient" to call the correct interceptors.
func RegisterCertificateServiceHandlerFromEndpoint ¶
func RegisterCertificateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCertificateServiceHandlerFromEndpoint is same as RegisterCertificateServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCertificateServiceHandlerServer ¶ added in v1.7.6
func RegisterCertificateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CertificateServiceServer) error
RegisterCertificateServiceHandlerServer registers the http handlers for service CertificateService to "mux". UnaryRPC :call CertificateServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterCertificateServiceServer ¶
func RegisterCertificateServiceServer(s *grpc.Server, srv CertificateServiceServer)
Types ¶
type CertificateServiceClient ¶
type CertificateServiceClient interface { // List all available repository certificates ListCertificates(ctx context.Context, in *RepositoryCertificateQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error) // Creates repository certificates on the server CreateCertificate(ctx context.Context, in *RepositoryCertificateCreateRequest, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, error) // Delete the certificates that match the RepositoryCertificateQuery DeleteCertificate(ctx context.Context, in *RepositoryCertificateQuery, opts ...grpc.CallOption) (*v1alpha1.RepositoryCertificateList, 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.
func NewCertificateServiceClient ¶
func NewCertificateServiceClient(cc *grpc.ClientConn) CertificateServiceClient
type CertificateServiceServer ¶
type CertificateServiceServer interface { // List all available repository certificates ListCertificates(context.Context, *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error) // Creates repository certificates on the server CreateCertificate(context.Context, *RepositoryCertificateCreateRequest) (*v1alpha1.RepositoryCertificateList, error) // Delete the certificates that match the RepositoryCertificateQuery DeleteCertificate(context.Context, *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error) }
CertificateServiceServer is the server API for CertificateService service.
type RepositoryCertificateCreateRequest ¶
type RepositoryCertificateCreateRequest struct { // List of certificates to be created Certificates *v1alpha1.RepositoryCertificateList `protobuf:"bytes,1,opt,name=certificates,proto3" json:"certificates,omitempty"` // Whether to upsert already existing certificates Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request to create a set of certificates
func (*RepositoryCertificateCreateRequest) Descriptor ¶
func (*RepositoryCertificateCreateRequest) Descriptor() ([]byte, []int)
func (*RepositoryCertificateCreateRequest) GetCertificates ¶
func (m *RepositoryCertificateCreateRequest) GetCertificates() *v1alpha1.RepositoryCertificateList
func (*RepositoryCertificateCreateRequest) GetUpsert ¶
func (m *RepositoryCertificateCreateRequest) GetUpsert() bool
func (*RepositoryCertificateCreateRequest) Marshal ¶
func (m *RepositoryCertificateCreateRequest) Marshal() (dAtA []byte, err error)
func (*RepositoryCertificateCreateRequest) MarshalTo ¶
func (m *RepositoryCertificateCreateRequest) MarshalTo(dAtA []byte) (int, error)
func (*RepositoryCertificateCreateRequest) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *RepositoryCertificateCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RepositoryCertificateCreateRequest) ProtoMessage ¶
func (*RepositoryCertificateCreateRequest) ProtoMessage()
func (*RepositoryCertificateCreateRequest) Reset ¶
func (m *RepositoryCertificateCreateRequest) Reset()
func (*RepositoryCertificateCreateRequest) Size ¶
func (m *RepositoryCertificateCreateRequest) Size() (n int)
func (*RepositoryCertificateCreateRequest) String ¶
func (m *RepositoryCertificateCreateRequest) String() string
func (*RepositoryCertificateCreateRequest) Unmarshal ¶
func (m *RepositoryCertificateCreateRequest) Unmarshal(dAtA []byte) error
func (*RepositoryCertificateCreateRequest) XXX_DiscardUnknown ¶
func (m *RepositoryCertificateCreateRequest) XXX_DiscardUnknown()
func (*RepositoryCertificateCreateRequest) XXX_Marshal ¶
func (m *RepositoryCertificateCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepositoryCertificateCreateRequest) XXX_Merge ¶
func (m *RepositoryCertificateCreateRequest) XXX_Merge(src proto.Message)
func (*RepositoryCertificateCreateRequest) XXX_Size ¶
func (m *RepositoryCertificateCreateRequest) XXX_Size() int
func (*RepositoryCertificateCreateRequest) XXX_Unmarshal ¶
func (m *RepositoryCertificateCreateRequest) XXX_Unmarshal(b []byte) error
type RepositoryCertificateQuery ¶
type RepositoryCertificateQuery struct { // A file-glob pattern (not regular expression) the host name has to match HostNamePattern string `protobuf:"bytes,1,opt,name=hostNamePattern,proto3" json:"hostNamePattern,omitempty"` // The type of the certificate to match (ssh or https) CertType string `protobuf:"bytes,2,opt,name=certType,proto3" json:"certType,omitempty"` // The sub type of the certificate to match (protocol dependent, usually only used for ssh certs) CertSubType string `protobuf:"bytes,3,opt,name=certSubType,proto3" json:"certSubType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Message to query the server for configured repository certificates
func (*RepositoryCertificateQuery) Descriptor ¶
func (*RepositoryCertificateQuery) Descriptor() ([]byte, []int)
func (*RepositoryCertificateQuery) GetCertSubType ¶
func (m *RepositoryCertificateQuery) GetCertSubType() string
func (*RepositoryCertificateQuery) GetCertType ¶
func (m *RepositoryCertificateQuery) GetCertType() string
func (*RepositoryCertificateQuery) GetHostNamePattern ¶
func (m *RepositoryCertificateQuery) GetHostNamePattern() string
func (*RepositoryCertificateQuery) Marshal ¶
func (m *RepositoryCertificateQuery) Marshal() (dAtA []byte, err error)
func (*RepositoryCertificateQuery) MarshalTo ¶
func (m *RepositoryCertificateQuery) MarshalTo(dAtA []byte) (int, error)
func (*RepositoryCertificateQuery) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *RepositoryCertificateQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RepositoryCertificateQuery) ProtoMessage ¶
func (*RepositoryCertificateQuery) ProtoMessage()
func (*RepositoryCertificateQuery) Reset ¶
func (m *RepositoryCertificateQuery) Reset()
func (*RepositoryCertificateQuery) Size ¶
func (m *RepositoryCertificateQuery) Size() (n int)
func (*RepositoryCertificateQuery) String ¶
func (m *RepositoryCertificateQuery) String() string
func (*RepositoryCertificateQuery) Unmarshal ¶
func (m *RepositoryCertificateQuery) Unmarshal(dAtA []byte) error
func (*RepositoryCertificateQuery) XXX_DiscardUnknown ¶
func (m *RepositoryCertificateQuery) XXX_DiscardUnknown()
func (*RepositoryCertificateQuery) XXX_Marshal ¶
func (m *RepositoryCertificateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepositoryCertificateQuery) XXX_Merge ¶
func (m *RepositoryCertificateQuery) XXX_Merge(src proto.Message)
func (*RepositoryCertificateQuery) XXX_Size ¶
func (m *RepositoryCertificateQuery) XXX_Size() int
func (*RepositoryCertificateQuery) XXX_Unmarshal ¶
func (m *RepositoryCertificateQuery) XXX_Unmarshal(b []byte) error
type RepositoryCertificateResponse ¶
type RepositoryCertificateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RepositoryCertificateResponse) Descriptor ¶
func (*RepositoryCertificateResponse) Descriptor() ([]byte, []int)
func (*RepositoryCertificateResponse) Marshal ¶
func (m *RepositoryCertificateResponse) Marshal() (dAtA []byte, err error)
func (*RepositoryCertificateResponse) MarshalTo ¶
func (m *RepositoryCertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*RepositoryCertificateResponse) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *RepositoryCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RepositoryCertificateResponse) ProtoMessage ¶
func (*RepositoryCertificateResponse) ProtoMessage()
func (*RepositoryCertificateResponse) Reset ¶
func (m *RepositoryCertificateResponse) Reset()
func (*RepositoryCertificateResponse) Size ¶
func (m *RepositoryCertificateResponse) Size() (n int)
func (*RepositoryCertificateResponse) String ¶
func (m *RepositoryCertificateResponse) String() string
func (*RepositoryCertificateResponse) Unmarshal ¶
func (m *RepositoryCertificateResponse) Unmarshal(dAtA []byte) error
func (*RepositoryCertificateResponse) XXX_DiscardUnknown ¶
func (m *RepositoryCertificateResponse) XXX_DiscardUnknown()
func (*RepositoryCertificateResponse) XXX_Marshal ¶
func (m *RepositoryCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepositoryCertificateResponse) XXX_Merge ¶
func (m *RepositoryCertificateResponse) XXX_Merge(src proto.Message)
func (*RepositoryCertificateResponse) XXX_Size ¶
func (m *RepositoryCertificateResponse) XXX_Size() int
func (*RepositoryCertificateResponse) XXX_Unmarshal ¶
func (m *RepositoryCertificateResponse) XXX_Unmarshal(b []byte) error
type UnimplementedCertificateServiceServer ¶ added in v1.4.0
type UnimplementedCertificateServiceServer struct { }
UnimplementedCertificateServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCertificateServiceServer) CreateCertificate ¶ added in v1.4.0
func (*UnimplementedCertificateServiceServer) CreateCertificate(ctx context.Context, req *RepositoryCertificateCreateRequest) (*v1alpha1.RepositoryCertificateList, error)
func (*UnimplementedCertificateServiceServer) DeleteCertificate ¶ added in v1.4.0
func (*UnimplementedCertificateServiceServer) DeleteCertificate(ctx context.Context, req *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error)
func (*UnimplementedCertificateServiceServer) ListCertificates ¶ added in v1.4.0
func (*UnimplementedCertificateServiceServer) ListCertificates(ctx context.Context, req *RepositoryCertificateQuery) (*v1alpha1.RepositoryCertificateList, error)