gpgkey

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gpgkey is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGpgkey        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGpgkey          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGpgkey = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterGPGKeyServiceHandler

func RegisterGPGKeyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterGPGKeyServiceHandler registers the http handlers for service GPGKeyService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterGPGKeyServiceHandlerClient

func RegisterGPGKeyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GPGKeyServiceClient) error

RegisterGPGKeyServiceHandlerClient registers the http handlers for service GPGKeyService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GPGKeyServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GPGKeyServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GPGKeyServiceClient" to call the correct interceptors.

func RegisterGPGKeyServiceHandlerFromEndpoint

func RegisterGPGKeyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterGPGKeyServiceHandlerFromEndpoint is same as RegisterGPGKeyServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterGPGKeyServiceHandlerServer added in v1.7.6

func RegisterGPGKeyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GPGKeyServiceServer) error

RegisterGPGKeyServiceHandlerServer registers the http handlers for service GPGKeyService to "mux". UnaryRPC :call GPGKeyServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterGPGKeyServiceServer

func RegisterGPGKeyServiceServer(s *grpc.Server, srv GPGKeyServiceServer)

Types

type GPGKeyServiceClient

type GPGKeyServiceClient interface {
	// List all available repository certificates
	List(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*v1alpha1.GnuPGPublicKeyList, error)
	// Get information about specified GPG public key from the server
	Get(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*v1alpha1.GnuPGPublicKey, error)
	// Create one or more GPG public keys in the server's configuration
	Create(ctx context.Context, in *GnuPGPublicKeyCreateRequest, opts ...grpc.CallOption) (*GnuPGPublicKeyCreateResponse, error)
	// Delete specified GPG public key from the server's configuration
	Delete(ctx context.Context, in *GnuPGPublicKeyQuery, opts ...grpc.CallOption) (*GnuPGPublicKeyResponse, error)
}

GPGKeyServiceClient is the client API for GPGKeyService service.

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

func NewGPGKeyServiceClient

func NewGPGKeyServiceClient(cc *grpc.ClientConn) GPGKeyServiceClient

type GPGKeyServiceServer

type GPGKeyServiceServer interface {
	// List all available repository certificates
	List(context.Context, *GnuPGPublicKeyQuery) (*v1alpha1.GnuPGPublicKeyList, error)
	// Get information about specified GPG public key from the server
	Get(context.Context, *GnuPGPublicKeyQuery) (*v1alpha1.GnuPGPublicKey, error)
	// Create one or more GPG public keys in the server's configuration
	Create(context.Context, *GnuPGPublicKeyCreateRequest) (*GnuPGPublicKeyCreateResponse, error)
	// Delete specified GPG public key from the server's configuration
	Delete(context.Context, *GnuPGPublicKeyQuery) (*GnuPGPublicKeyResponse, error)
}

GPGKeyServiceServer is the server API for GPGKeyService service.

type GnuPGPublicKeyCreateRequest

type GnuPGPublicKeyCreateRequest struct {
	// Raw key data of the GPG key(s) to create
	Publickey *v1alpha1.GnuPGPublicKey `protobuf:"bytes,1,opt,name=publickey,proto3" json:"publickey,omitempty"`
	// Whether to upsert already existing public keys
	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 one or more public keys on the server

func (*GnuPGPublicKeyCreateRequest) Descriptor

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

func (*GnuPGPublicKeyCreateRequest) GetPublickey

func (*GnuPGPublicKeyCreateRequest) GetUpsert

func (m *GnuPGPublicKeyCreateRequest) GetUpsert() bool

func (*GnuPGPublicKeyCreateRequest) Marshal

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

func (*GnuPGPublicKeyCreateRequest) MarshalTo

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

func (*GnuPGPublicKeyCreateRequest) MarshalToSizedBuffer

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

func (*GnuPGPublicKeyCreateRequest) ProtoMessage

func (*GnuPGPublicKeyCreateRequest) ProtoMessage()

func (*GnuPGPublicKeyCreateRequest) Reset

func (m *GnuPGPublicKeyCreateRequest) Reset()

func (*GnuPGPublicKeyCreateRequest) Size

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

func (*GnuPGPublicKeyCreateRequest) String

func (m *GnuPGPublicKeyCreateRequest) String() string

func (*GnuPGPublicKeyCreateRequest) Unmarshal

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

func (*GnuPGPublicKeyCreateRequest) XXX_DiscardUnknown

func (m *GnuPGPublicKeyCreateRequest) XXX_DiscardUnknown()

func (*GnuPGPublicKeyCreateRequest) XXX_Marshal

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

func (*GnuPGPublicKeyCreateRequest) XXX_Merge

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

func (*GnuPGPublicKeyCreateRequest) XXX_Size

func (m *GnuPGPublicKeyCreateRequest) XXX_Size() int

func (*GnuPGPublicKeyCreateRequest) XXX_Unmarshal

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

type GnuPGPublicKeyCreateResponse

type GnuPGPublicKeyCreateResponse struct {
	// List of GPG public keys that have been created
	Created *v1alpha1.GnuPGPublicKeyList `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	// List of key IDs that haven been skipped because they already exist on the server
	Skipped              []string `protobuf:"bytes,2,rep,name=skipped,proto3" json:"skipped,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response to a public key creation request

func (*GnuPGPublicKeyCreateResponse) Descriptor

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

func (*GnuPGPublicKeyCreateResponse) GetCreated

func (*GnuPGPublicKeyCreateResponse) GetSkipped

func (m *GnuPGPublicKeyCreateResponse) GetSkipped() []string

func (*GnuPGPublicKeyCreateResponse) Marshal

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

func (*GnuPGPublicKeyCreateResponse) MarshalTo

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

func (*GnuPGPublicKeyCreateResponse) MarshalToSizedBuffer

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

func (*GnuPGPublicKeyCreateResponse) ProtoMessage

func (*GnuPGPublicKeyCreateResponse) ProtoMessage()

func (*GnuPGPublicKeyCreateResponse) Reset

func (m *GnuPGPublicKeyCreateResponse) Reset()

func (*GnuPGPublicKeyCreateResponse) Size

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

func (*GnuPGPublicKeyCreateResponse) String

func (*GnuPGPublicKeyCreateResponse) Unmarshal

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

func (*GnuPGPublicKeyCreateResponse) XXX_DiscardUnknown

func (m *GnuPGPublicKeyCreateResponse) XXX_DiscardUnknown()

func (*GnuPGPublicKeyCreateResponse) XXX_Marshal

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

func (*GnuPGPublicKeyCreateResponse) XXX_Merge

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

func (*GnuPGPublicKeyCreateResponse) XXX_Size

func (m *GnuPGPublicKeyCreateResponse) XXX_Size() int

func (*GnuPGPublicKeyCreateResponse) XXX_Unmarshal

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

type GnuPGPublicKeyQuery

type GnuPGPublicKeyQuery struct {
	// The GPG key ID to query for
	KeyID                string   `protobuf:"bytes,1,opt,name=keyID,proto3" json:"keyID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Message to query the server for configured GPG public keys

func (*GnuPGPublicKeyQuery) Descriptor

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

func (*GnuPGPublicKeyQuery) GetKeyID

func (m *GnuPGPublicKeyQuery) GetKeyID() string

func (*GnuPGPublicKeyQuery) Marshal

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

func (*GnuPGPublicKeyQuery) MarshalTo

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

func (*GnuPGPublicKeyQuery) MarshalToSizedBuffer

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

func (*GnuPGPublicKeyQuery) ProtoMessage

func (*GnuPGPublicKeyQuery) ProtoMessage()

func (*GnuPGPublicKeyQuery) Reset

func (m *GnuPGPublicKeyQuery) Reset()

func (*GnuPGPublicKeyQuery) Size

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

func (*GnuPGPublicKeyQuery) String

func (m *GnuPGPublicKeyQuery) String() string

func (*GnuPGPublicKeyQuery) Unmarshal

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

func (*GnuPGPublicKeyQuery) XXX_DiscardUnknown

func (m *GnuPGPublicKeyQuery) XXX_DiscardUnknown()

func (*GnuPGPublicKeyQuery) XXX_Marshal

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

func (*GnuPGPublicKeyQuery) XXX_Merge

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

func (*GnuPGPublicKeyQuery) XXX_Size

func (m *GnuPGPublicKeyQuery) XXX_Size() int

func (*GnuPGPublicKeyQuery) XXX_Unmarshal

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

type GnuPGPublicKeyResponse

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

Generic (empty) response for GPG public key CRUD requests

func (*GnuPGPublicKeyResponse) Descriptor

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

func (*GnuPGPublicKeyResponse) Marshal

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

func (*GnuPGPublicKeyResponse) MarshalTo

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

func (*GnuPGPublicKeyResponse) MarshalToSizedBuffer

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

func (*GnuPGPublicKeyResponse) ProtoMessage

func (*GnuPGPublicKeyResponse) ProtoMessage()

func (*GnuPGPublicKeyResponse) Reset

func (m *GnuPGPublicKeyResponse) Reset()

func (*GnuPGPublicKeyResponse) Size

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

func (*GnuPGPublicKeyResponse) String

func (m *GnuPGPublicKeyResponse) String() string

func (*GnuPGPublicKeyResponse) Unmarshal

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

func (*GnuPGPublicKeyResponse) XXX_DiscardUnknown

func (m *GnuPGPublicKeyResponse) XXX_DiscardUnknown()

func (*GnuPGPublicKeyResponse) XXX_Marshal

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

func (*GnuPGPublicKeyResponse) XXX_Merge

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

func (*GnuPGPublicKeyResponse) XXX_Size

func (m *GnuPGPublicKeyResponse) XXX_Size() int

func (*GnuPGPublicKeyResponse) XXX_Unmarshal

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

type UnimplementedGPGKeyServiceServer

type UnimplementedGPGKeyServiceServer struct {
}

UnimplementedGPGKeyServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGPGKeyServiceServer) Create

func (*UnimplementedGPGKeyServiceServer) Delete

func (*UnimplementedGPGKeyServiceServer) Get

func (*UnimplementedGPGKeyServiceServer) List

Jump to

Keyboard shortcuts

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