repocreds

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package repocreds is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRepocreds        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRepocreds          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRepocreds = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterRepoCredsServiceHandler

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

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

func RegisterRepoCredsServiceHandlerClient

func RegisterRepoCredsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepoCredsServiceClient) error

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

func RegisterRepoCredsServiceHandlerFromEndpoint

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

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

func RegisterRepoCredsServiceServer

func RegisterRepoCredsServiceServer(s *grpc.Server, srv RepoCredsServiceServer)

Types

type RepoCredsCreateRequest

type RepoCredsCreateRequest struct {
	// Repository definition
	Creds *v1alpha1.RepoCreds `protobuf:"bytes,1,opt,name=creds,proto3" json:"creds,omitempty"`
	// Whether to create in upsert mode
	Upsert               bool     `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RepoCreateRequest is a request for creating repository credentials config

func (*RepoCredsCreateRequest) Descriptor

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

func (*RepoCredsCreateRequest) GetCreds

func (m *RepoCredsCreateRequest) GetCreds() *v1alpha1.RepoCreds

func (*RepoCredsCreateRequest) GetUpsert

func (m *RepoCredsCreateRequest) GetUpsert() bool

func (*RepoCredsCreateRequest) Marshal

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

func (*RepoCredsCreateRequest) MarshalTo

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

func (*RepoCredsCreateRequest) MarshalToSizedBuffer

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

func (*RepoCredsCreateRequest) ProtoMessage

func (*RepoCredsCreateRequest) ProtoMessage()

func (*RepoCredsCreateRequest) Reset

func (m *RepoCredsCreateRequest) Reset()

func (*RepoCredsCreateRequest) Size

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

func (*RepoCredsCreateRequest) String

func (m *RepoCredsCreateRequest) String() string

func (*RepoCredsCreateRequest) Unmarshal

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

func (*RepoCredsCreateRequest) XXX_DiscardUnknown

func (m *RepoCredsCreateRequest) XXX_DiscardUnknown()

func (*RepoCredsCreateRequest) XXX_Marshal

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

func (*RepoCredsCreateRequest) XXX_Merge

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

func (*RepoCredsCreateRequest) XXX_Size

func (m *RepoCredsCreateRequest) XXX_Size() int

func (*RepoCredsCreateRequest) XXX_Unmarshal

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

type RepoCredsDeleteRequest

type RepoCredsDeleteRequest struct {
	Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RepoCredsDeleteRequest) Descriptor

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

func (*RepoCredsDeleteRequest) GetUrl

func (m *RepoCredsDeleteRequest) GetUrl() string

func (*RepoCredsDeleteRequest) Marshal

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

func (*RepoCredsDeleteRequest) MarshalTo

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

func (*RepoCredsDeleteRequest) MarshalToSizedBuffer

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

func (*RepoCredsDeleteRequest) ProtoMessage

func (*RepoCredsDeleteRequest) ProtoMessage()

func (*RepoCredsDeleteRequest) Reset

func (m *RepoCredsDeleteRequest) Reset()

func (*RepoCredsDeleteRequest) Size

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

func (*RepoCredsDeleteRequest) String

func (m *RepoCredsDeleteRequest) String() string

func (*RepoCredsDeleteRequest) Unmarshal

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

func (*RepoCredsDeleteRequest) XXX_DiscardUnknown

func (m *RepoCredsDeleteRequest) XXX_DiscardUnknown()

func (*RepoCredsDeleteRequest) XXX_Marshal

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

func (*RepoCredsDeleteRequest) XXX_Merge

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

func (*RepoCredsDeleteRequest) XXX_Size

func (m *RepoCredsDeleteRequest) XXX_Size() int

func (*RepoCredsDeleteRequest) XXX_Unmarshal

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

type RepoCredsQuery

type RepoCredsQuery struct {
	// Repo URL for query
	Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RepoCredsQuery is a query for RepoCreds resources

func (*RepoCredsQuery) Descriptor

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

func (*RepoCredsQuery) GetUrl

func (m *RepoCredsQuery) GetUrl() string

func (*RepoCredsQuery) Marshal

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

func (*RepoCredsQuery) MarshalTo

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

func (*RepoCredsQuery) MarshalToSizedBuffer

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

func (*RepoCredsQuery) ProtoMessage

func (*RepoCredsQuery) ProtoMessage()

func (*RepoCredsQuery) Reset

func (m *RepoCredsQuery) Reset()

func (*RepoCredsQuery) Size

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

func (*RepoCredsQuery) String

func (m *RepoCredsQuery) String() string

func (*RepoCredsQuery) Unmarshal

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

func (*RepoCredsQuery) XXX_DiscardUnknown

func (m *RepoCredsQuery) XXX_DiscardUnknown()

func (*RepoCredsQuery) XXX_Marshal

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

func (*RepoCredsQuery) XXX_Merge

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

func (*RepoCredsQuery) XXX_Size

func (m *RepoCredsQuery) XXX_Size() int

func (*RepoCredsQuery) XXX_Unmarshal

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

type RepoCredsResponse

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

RepoCredsResponse is a resonse to most repository credentials requests

func (*RepoCredsResponse) Descriptor

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

func (*RepoCredsResponse) Marshal

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

func (*RepoCredsResponse) MarshalTo

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

func (*RepoCredsResponse) MarshalToSizedBuffer

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

func (*RepoCredsResponse) ProtoMessage

func (*RepoCredsResponse) ProtoMessage()

func (*RepoCredsResponse) Reset

func (m *RepoCredsResponse) Reset()

func (*RepoCredsResponse) Size

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

func (*RepoCredsResponse) String

func (m *RepoCredsResponse) String() string

func (*RepoCredsResponse) Unmarshal

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

func (*RepoCredsResponse) XXX_DiscardUnknown

func (m *RepoCredsResponse) XXX_DiscardUnknown()

func (*RepoCredsResponse) XXX_Marshal

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

func (*RepoCredsResponse) XXX_Merge

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

func (*RepoCredsResponse) XXX_Size

func (m *RepoCredsResponse) XXX_Size() int

func (*RepoCredsResponse) XXX_Unmarshal

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

type RepoCredsServiceClient

type RepoCredsServiceClient interface {
	// ListRepositoryCredentials gets a list of all configured repository credential sets
	ListRepositoryCredentials(ctx context.Context, in *RepoCredsQuery, opts ...grpc.CallOption) (*v1alpha1.RepoCredsList, error)
	// CreateRepositoryCredentials creates a new repository credential set
	CreateRepositoryCredentials(ctx context.Context, in *RepoCredsCreateRequest, opts ...grpc.CallOption) (*v1alpha1.RepoCreds, error)
	// UpdateRepositoryCredentials updates a repository credential set
	UpdateRepositoryCredentials(ctx context.Context, in *RepoCredsUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.RepoCreds, error)
	// DeleteRepositoryCredentials deletes a repository credential set from the configuration
	DeleteRepositoryCredentials(ctx context.Context, in *RepoCredsDeleteRequest, opts ...grpc.CallOption) (*RepoCredsResponse, error)
}

RepoCredsServiceClient is the client API for RepoCredsService service.

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

func NewRepoCredsServiceClient

func NewRepoCredsServiceClient(cc *grpc.ClientConn) RepoCredsServiceClient

type RepoCredsServiceServer

type RepoCredsServiceServer interface {
	// ListRepositoryCredentials gets a list of all configured repository credential sets
	ListRepositoryCredentials(context.Context, *RepoCredsQuery) (*v1alpha1.RepoCredsList, error)
	// CreateRepositoryCredentials creates a new repository credential set
	CreateRepositoryCredentials(context.Context, *RepoCredsCreateRequest) (*v1alpha1.RepoCreds, error)
	// UpdateRepositoryCredentials updates a repository credential set
	UpdateRepositoryCredentials(context.Context, *RepoCredsUpdateRequest) (*v1alpha1.RepoCreds, error)
	// DeleteRepositoryCredentials deletes a repository credential set from the configuration
	DeleteRepositoryCredentials(context.Context, *RepoCredsDeleteRequest) (*RepoCredsResponse, error)
}

RepoCredsServiceServer is the server API for RepoCredsService service.

type RepoCredsUpdateRequest

type RepoCredsUpdateRequest struct {
	Creds                *v1alpha1.RepoCreds `protobuf:"bytes,1,opt,name=creds,proto3" json:"creds,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

RepoCredsUpdateRequest is a request for updating existing repository credentials config

func (*RepoCredsUpdateRequest) Descriptor

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

func (*RepoCredsUpdateRequest) GetCreds

func (m *RepoCredsUpdateRequest) GetCreds() *v1alpha1.RepoCreds

func (*RepoCredsUpdateRequest) Marshal

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

func (*RepoCredsUpdateRequest) MarshalTo

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

func (*RepoCredsUpdateRequest) MarshalToSizedBuffer

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

func (*RepoCredsUpdateRequest) ProtoMessage

func (*RepoCredsUpdateRequest) ProtoMessage()

func (*RepoCredsUpdateRequest) Reset

func (m *RepoCredsUpdateRequest) Reset()

func (*RepoCredsUpdateRequest) Size

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

func (*RepoCredsUpdateRequest) String

func (m *RepoCredsUpdateRequest) String() string

func (*RepoCredsUpdateRequest) Unmarshal

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

func (*RepoCredsUpdateRequest) XXX_DiscardUnknown

func (m *RepoCredsUpdateRequest) XXX_DiscardUnknown()

func (*RepoCredsUpdateRequest) XXX_Marshal

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

func (*RepoCredsUpdateRequest) XXX_Merge

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

func (*RepoCredsUpdateRequest) XXX_Size

func (m *RepoCredsUpdateRequest) XXX_Size() int

func (*RepoCredsUpdateRequest) XXX_Unmarshal

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

type UnimplementedRepoCredsServiceServer

type UnimplementedRepoCredsServiceServer struct {
}

UnimplementedRepoCredsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRepoCredsServiceServer) CreateRepositoryCredentials

func (*UnimplementedRepoCredsServiceServer) DeleteRepositoryCredentials

func (*UnimplementedRepoCredsServiceServer) ListRepositoryCredentials

func (*UnimplementedRepoCredsServiceServer) UpdateRepositoryCredentials

Jump to

Keyboard shortcuts

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