Documentation ¶
Overview ¶
Package artifactstore is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterArtifactStoreHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterArtifactStoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactStoreClient) error
- func RegisterArtifactStoreHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterArtifactStoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactStoreServer) error
- func RegisterArtifactStoreServer(s *grpc.Server, srv ArtifactStoreServer)
- type ArtifactStoreClient
- type ArtifactStoreServer
- type DeleteArtifact
- type DeleteArtifact_Response
- func (*DeleteArtifact_Response) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteArtifact_Response) GetStatus() bool
- func (*DeleteArtifact_Response) ProtoMessage()
- func (x *DeleteArtifact_Response) ProtoReflect() protoreflect.Message
- func (x *DeleteArtifact_Response) Reset()
- func (x *DeleteArtifact_Response) String() string
- type GetArtifact
- type GetArtifact_Response
- func (*GetArtifact_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetArtifact_Response) GetContents() []byte
- func (*GetArtifact_Response) ProtoMessage()
- func (x *GetArtifact_Response) ProtoReflect() protoreflect.Message
- func (x *GetArtifact_Response) Reset()
- func (x *GetArtifact_Response) String() string
- type StoreArtifact
- func (*StoreArtifact) Descriptor() ([]byte, []int)deprecated
- func (x *StoreArtifact) GetKey() string
- func (x *StoreArtifact) GetPath() string
- func (*StoreArtifact) ProtoMessage()
- func (x *StoreArtifact) ProtoReflect() protoreflect.Message
- func (x *StoreArtifact) Reset()
- func (x *StoreArtifact) String() string
- type StoreArtifactWithStream
- func (*StoreArtifactWithStream) Descriptor() ([]byte, []int)deprecated
- func (x *StoreArtifactWithStream) GetClientFile() []byte
- func (x *StoreArtifactWithStream) GetKey() string
- func (*StoreArtifactWithStream) ProtoMessage()
- func (x *StoreArtifactWithStream) ProtoReflect() protoreflect.Message
- func (x *StoreArtifactWithStream) Reset()
- func (x *StoreArtifactWithStream) String() string
- type StoreArtifactWithStream_Response
- func (*StoreArtifactWithStream_Response) Descriptor() ([]byte, []int)deprecated
- func (x *StoreArtifactWithStream_Response) GetCloudFileKey() string
- func (x *StoreArtifactWithStream_Response) GetCloudFilePath() string
- func (*StoreArtifactWithStream_Response) ProtoMessage()
- func (x *StoreArtifactWithStream_Response) ProtoReflect() protoreflect.Message
- func (x *StoreArtifactWithStream_Response) Reset()
- func (x *StoreArtifactWithStream_Response) String() string
- type StoreArtifact_Response
- func (*StoreArtifact_Response) Descriptor() ([]byte, []int)deprecated
- func (x *StoreArtifact_Response) GetArtifactStoreKey() string
- func (x *StoreArtifact_Response) GetArtifactStorePath() string
- func (*StoreArtifact_Response) ProtoMessage()
- func (x *StoreArtifact_Response) ProtoReflect() protoreflect.Message
- func (x *StoreArtifact_Response) Reset()
- func (x *StoreArtifact_Response) String() string
- type UnimplementedArtifactStoreServer
- func (*UnimplementedArtifactStoreServer) DeleteArtifact(context.Context, *DeleteArtifact) (*DeleteArtifact_Response, error)
- func (*UnimplementedArtifactStoreServer) GetArtifact(context.Context, *GetArtifact) (*GetArtifact_Response, error)
- func (*UnimplementedArtifactStoreServer) StoreArtifact(context.Context, *StoreArtifact) (*StoreArtifact_Response, error)
- func (*UnimplementedArtifactStoreServer) StoreArtifactWithStream(context.Context, *StoreArtifactWithStream) (*StoreArtifactWithStream_Response, error)
Constants ¶
This section is empty.
Variables ¶
var File_artifactstore_ArtifactStore_proto protoreflect.FileDescriptor
Functions ¶
func RegisterArtifactStoreHandler ¶
func RegisterArtifactStoreHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterArtifactStoreHandler registers the http handlers for service ArtifactStore to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterArtifactStoreHandlerClient ¶
func RegisterArtifactStoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactStoreClient) error
RegisterArtifactStoreHandlerClient registers the http handlers for service ArtifactStore to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArtifactStoreClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArtifactStoreClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ArtifactStoreClient" to call the correct interceptors.
func RegisterArtifactStoreHandlerFromEndpoint ¶
func RegisterArtifactStoreHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterArtifactStoreHandlerFromEndpoint is same as RegisterArtifactStoreHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterArtifactStoreHandlerServer ¶
func RegisterArtifactStoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactStoreServer) error
RegisterArtifactStoreHandlerServer registers the http handlers for service ArtifactStore to "mux". UnaryRPC :call ArtifactStoreServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterArtifactStoreServer ¶
func RegisterArtifactStoreServer(s *grpc.Server, srv ArtifactStoreServer)
Types ¶
type ArtifactStoreClient ¶
type ArtifactStoreClient interface { StoreArtifact(ctx context.Context, in *StoreArtifact, opts ...grpc.CallOption) (*StoreArtifact_Response, error) StoreArtifactWithStream(ctx context.Context, in *StoreArtifactWithStream, opts ...grpc.CallOption) (*StoreArtifactWithStream_Response, error) GetArtifact(ctx context.Context, in *GetArtifact, opts ...grpc.CallOption) (*GetArtifact_Response, error) DeleteArtifact(ctx context.Context, in *DeleteArtifact, opts ...grpc.CallOption) (*DeleteArtifact_Response, error) }
ArtifactStoreClient is the client API for ArtifactStore service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewArtifactStoreClient ¶
func NewArtifactStoreClient(cc grpc.ClientConnInterface) ArtifactStoreClient
type ArtifactStoreServer ¶
type ArtifactStoreServer interface { StoreArtifact(context.Context, *StoreArtifact) (*StoreArtifact_Response, error) StoreArtifactWithStream(context.Context, *StoreArtifactWithStream) (*StoreArtifactWithStream_Response, error) GetArtifact(context.Context, *GetArtifact) (*GetArtifact_Response, error) DeleteArtifact(context.Context, *DeleteArtifact) (*DeleteArtifact_Response, error) }
ArtifactStoreServer is the server API for ArtifactStore service.
type DeleteArtifact ¶
type DeleteArtifact struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteArtifact) Descriptor
deprecated
func (*DeleteArtifact) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArtifact.ProtoReflect.Descriptor instead.
func (*DeleteArtifact) GetKey ¶
func (x *DeleteArtifact) GetKey() string
func (*DeleteArtifact) ProtoMessage ¶
func (*DeleteArtifact) ProtoMessage()
func (*DeleteArtifact) ProtoReflect ¶
func (x *DeleteArtifact) ProtoReflect() protoreflect.Message
func (*DeleteArtifact) Reset ¶
func (x *DeleteArtifact) Reset()
func (*DeleteArtifact) String ¶
func (x *DeleteArtifact) String() string
type DeleteArtifact_Response ¶
type DeleteArtifact_Response struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeleteArtifact_Response) Descriptor
deprecated
func (*DeleteArtifact_Response) Descriptor() ([]byte, []int)
Deprecated: Use DeleteArtifact_Response.ProtoReflect.Descriptor instead.
func (*DeleteArtifact_Response) GetStatus ¶
func (x *DeleteArtifact_Response) GetStatus() bool
func (*DeleteArtifact_Response) ProtoMessage ¶
func (*DeleteArtifact_Response) ProtoMessage()
func (*DeleteArtifact_Response) ProtoReflect ¶
func (x *DeleteArtifact_Response) ProtoReflect() protoreflect.Message
func (*DeleteArtifact_Response) Reset ¶
func (x *DeleteArtifact_Response) Reset()
func (*DeleteArtifact_Response) String ¶
func (x *DeleteArtifact_Response) String() string
type GetArtifact ¶
type GetArtifact struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetArtifact) Descriptor
deprecated
func (*GetArtifact) Descriptor() ([]byte, []int)
Deprecated: Use GetArtifact.ProtoReflect.Descriptor instead.
func (*GetArtifact) GetKey ¶
func (x *GetArtifact) GetKey() string
func (*GetArtifact) ProtoMessage ¶
func (*GetArtifact) ProtoMessage()
func (*GetArtifact) ProtoReflect ¶
func (x *GetArtifact) ProtoReflect() protoreflect.Message
func (*GetArtifact) Reset ¶
func (x *GetArtifact) Reset()
func (*GetArtifact) String ¶
func (x *GetArtifact) String() string
type GetArtifact_Response ¶
type GetArtifact_Response struct { Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` // contains filtered or unexported fields }
func (*GetArtifact_Response) Descriptor
deprecated
func (*GetArtifact_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetArtifact_Response.ProtoReflect.Descriptor instead.
func (*GetArtifact_Response) GetContents ¶
func (x *GetArtifact_Response) GetContents() []byte
func (*GetArtifact_Response) ProtoMessage ¶
func (*GetArtifact_Response) ProtoMessage()
func (*GetArtifact_Response) ProtoReflect ¶
func (x *GetArtifact_Response) ProtoReflect() protoreflect.Message
func (*GetArtifact_Response) Reset ¶
func (x *GetArtifact_Response) Reset()
func (*GetArtifact_Response) String ¶
func (x *GetArtifact_Response) String() string
type StoreArtifact ¶
type StoreArtifact struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*StoreArtifact) Descriptor
deprecated
func (*StoreArtifact) Descriptor() ([]byte, []int)
Deprecated: Use StoreArtifact.ProtoReflect.Descriptor instead.
func (*StoreArtifact) GetKey ¶
func (x *StoreArtifact) GetKey() string
func (*StoreArtifact) GetPath ¶
func (x *StoreArtifact) GetPath() string
func (*StoreArtifact) ProtoMessage ¶
func (*StoreArtifact) ProtoMessage()
func (*StoreArtifact) ProtoReflect ¶
func (x *StoreArtifact) ProtoReflect() protoreflect.Message
func (*StoreArtifact) Reset ¶
func (x *StoreArtifact) Reset()
func (*StoreArtifact) String ¶
func (x *StoreArtifact) String() string
type StoreArtifactWithStream ¶
type StoreArtifactWithStream struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ClientFile []byte `protobuf:"bytes,2,opt,name=client_file,json=clientFile,proto3" json:"client_file,omitempty"` // contains filtered or unexported fields }
func (*StoreArtifactWithStream) Descriptor
deprecated
func (*StoreArtifactWithStream) Descriptor() ([]byte, []int)
Deprecated: Use StoreArtifactWithStream.ProtoReflect.Descriptor instead.
func (*StoreArtifactWithStream) GetClientFile ¶
func (x *StoreArtifactWithStream) GetClientFile() []byte
func (*StoreArtifactWithStream) GetKey ¶
func (x *StoreArtifactWithStream) GetKey() string
func (*StoreArtifactWithStream) ProtoMessage ¶
func (*StoreArtifactWithStream) ProtoMessage()
func (*StoreArtifactWithStream) ProtoReflect ¶
func (x *StoreArtifactWithStream) ProtoReflect() protoreflect.Message
func (*StoreArtifactWithStream) Reset ¶
func (x *StoreArtifactWithStream) Reset()
func (*StoreArtifactWithStream) String ¶
func (x *StoreArtifactWithStream) String() string
type StoreArtifactWithStream_Response ¶
type StoreArtifactWithStream_Response struct { CloudFileKey string `protobuf:"bytes,1,opt,name=cloud_file_key,json=cloudFileKey,proto3" json:"cloud_file_key,omitempty"` CloudFilePath string `protobuf:"bytes,2,opt,name=cloud_file_path,json=cloudFilePath,proto3" json:"cloud_file_path,omitempty"` // contains filtered or unexported fields }
func (*StoreArtifactWithStream_Response) Descriptor
deprecated
func (*StoreArtifactWithStream_Response) Descriptor() ([]byte, []int)
Deprecated: Use StoreArtifactWithStream_Response.ProtoReflect.Descriptor instead.
func (*StoreArtifactWithStream_Response) GetCloudFileKey ¶
func (x *StoreArtifactWithStream_Response) GetCloudFileKey() string
func (*StoreArtifactWithStream_Response) GetCloudFilePath ¶
func (x *StoreArtifactWithStream_Response) GetCloudFilePath() string
func (*StoreArtifactWithStream_Response) ProtoMessage ¶
func (*StoreArtifactWithStream_Response) ProtoMessage()
func (*StoreArtifactWithStream_Response) ProtoReflect ¶
func (x *StoreArtifactWithStream_Response) ProtoReflect() protoreflect.Message
func (*StoreArtifactWithStream_Response) Reset ¶
func (x *StoreArtifactWithStream_Response) Reset()
func (*StoreArtifactWithStream_Response) String ¶
func (x *StoreArtifactWithStream_Response) String() string
type StoreArtifact_Response ¶
type StoreArtifact_Response struct { ArtifactStoreKey string `protobuf:"bytes,1,opt,name=artifact_store_key,json=artifactStoreKey,proto3" json:"artifact_store_key,omitempty"` ArtifactStorePath string `protobuf:"bytes,2,opt,name=artifact_store_path,json=artifactStorePath,proto3" json:"artifact_store_path,omitempty"` // contains filtered or unexported fields }
func (*StoreArtifact_Response) Descriptor
deprecated
func (*StoreArtifact_Response) Descriptor() ([]byte, []int)
Deprecated: Use StoreArtifact_Response.ProtoReflect.Descriptor instead.
func (*StoreArtifact_Response) GetArtifactStoreKey ¶
func (x *StoreArtifact_Response) GetArtifactStoreKey() string
func (*StoreArtifact_Response) GetArtifactStorePath ¶
func (x *StoreArtifact_Response) GetArtifactStorePath() string
func (*StoreArtifact_Response) ProtoMessage ¶
func (*StoreArtifact_Response) ProtoMessage()
func (*StoreArtifact_Response) ProtoReflect ¶
func (x *StoreArtifact_Response) ProtoReflect() protoreflect.Message
func (*StoreArtifact_Response) Reset ¶
func (x *StoreArtifact_Response) Reset()
func (*StoreArtifact_Response) String ¶
func (x *StoreArtifact_Response) String() string
type UnimplementedArtifactStoreServer ¶
type UnimplementedArtifactStoreServer struct { }
UnimplementedArtifactStoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedArtifactStoreServer) DeleteArtifact ¶
func (*UnimplementedArtifactStoreServer) DeleteArtifact(context.Context, *DeleteArtifact) (*DeleteArtifact_Response, error)
func (*UnimplementedArtifactStoreServer) GetArtifact ¶
func (*UnimplementedArtifactStoreServer) GetArtifact(context.Context, *GetArtifact) (*GetArtifact_Response, error)
func (*UnimplementedArtifactStoreServer) StoreArtifact ¶
func (*UnimplementedArtifactStoreServer) StoreArtifact(context.Context, *StoreArtifact) (*StoreArtifact_Response, error)
func (*UnimplementedArtifactStoreServer) StoreArtifactWithStream ¶
func (*UnimplementedArtifactStoreServer) StoreArtifactWithStream(context.Context, *StoreArtifactWithStream) (*StoreArtifactWithStream_Response, error)