certificate

package
v2.5.19 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Overview

Package certificate is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCertificate        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCertificate          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCertificate = fmt.Errorf("proto: unexpected end of group")
)

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

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. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCertificateServiceHandlerFromEndpoint instead.

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 (*RepositoryCertificateCreateRequest) GetUpsert

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

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

func (*RepositoryCertificateCreateRequest) ProtoMessage

func (*RepositoryCertificateCreateRequest) ProtoMessage()

func (*RepositoryCertificateCreateRequest) Reset

func (*RepositoryCertificateCreateRequest) Size

func (*RepositoryCertificateCreateRequest) 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 (*RepositoryCertificateCreateRequest) XXX_Size

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

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

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 (*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

type UnimplementedCertificateServiceServer struct {
}

UnimplementedCertificateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCertificateServiceServer) CreateCertificate

func (*UnimplementedCertificateServiceServer) DeleteCertificate

func (*UnimplementedCertificateServiceServer) ListCertificates

Jump to

Keyboard shortcuts

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