object_store

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package object_store is a generated protocol buffer package.

It is generated from these files:

github.com/appcelerator/amp/api/rpc/object_store/object_store.proto

It has these top-level messages:

CreateRequest
CreateReply
ListRequest
ListReply
ObjectStoreEntry
RemoveRequest
RemoveReply
ForgetRequest
ForgetReply

Package object_store is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterObjectStoreHandler

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

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

func RegisterObjectStoreHandlerClient

func RegisterObjectStoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectStoreClient) error

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

func RegisterObjectStoreHandlerFromEndpoint

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

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

func RegisterObjectStoreServer

func RegisterObjectStoreServer(s *grpc.Server, srv ObjectStoreServer)

Types

type CreateReply

type CreateReply struct {
	Id       string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Location string `protobuf:"bytes,3,opt,name=location" json:"location,omitempty"`
}

func (*CreateReply) Descriptor

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

func (*CreateReply) GetId

func (m *CreateReply) GetId() string

func (*CreateReply) GetLocation

func (m *CreateReply) GetLocation() string

func (*CreateReply) GetName

func (m *CreateReply) GetName() string

func (*CreateReply) ProtoMessage

func (*CreateReply) ProtoMessage()

func (*CreateReply) Reset

func (m *CreateReply) Reset()

func (*CreateReply) String

func (m *CreateReply) String() string

type CreateRequest

type CreateRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Acl  string `protobuf:"bytes,2,opt,name=acl" json:"acl,omitempty"`
}

func (*CreateRequest) Descriptor

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

func (*CreateRequest) GetAcl

func (m *CreateRequest) GetAcl() string

func (*CreateRequest) GetName

func (m *CreateRequest) GetName() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

type ForgetReply

type ForgetReply struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*ForgetReply) Descriptor

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

func (*ForgetReply) GetName

func (m *ForgetReply) GetName() string

func (*ForgetReply) ProtoMessage

func (*ForgetReply) ProtoMessage()

func (*ForgetReply) Reset

func (m *ForgetReply) Reset()

func (*ForgetReply) String

func (m *ForgetReply) String() string

type ForgetRequest

type ForgetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*ForgetRequest) Descriptor

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

func (*ForgetRequest) GetName

func (m *ForgetRequest) GetName() string

func (*ForgetRequest) ProtoMessage

func (*ForgetRequest) ProtoMessage()

func (*ForgetRequest) Reset

func (m *ForgetRequest) Reset()

func (*ForgetRequest) String

func (m *ForgetRequest) String() string

type ListReply

type ListReply struct {
	Entries []*ObjectStoreEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
}

func (*ListReply) Descriptor

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

func (*ListReply) GetEntries

func (m *ListReply) GetEntries() []*ObjectStoreEntry

func (*ListReply) ProtoMessage

func (*ListReply) ProtoMessage()

func (*ListReply) Reset

func (m *ListReply) Reset()

func (*ListReply) String

func (m *ListReply) String() string

type ListRequest

type ListRequest struct {
}

func (*ListRequest) Descriptor

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

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

type ObjectStoreClient

type ObjectStoreClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error)
	Forget(ctx context.Context, in *ForgetRequest, opts ...grpc.CallOption) (*ForgetReply, error)
}

func NewObjectStoreClient

func NewObjectStoreClient(cc *grpc.ClientConn) ObjectStoreClient

type ObjectStoreEntry

type ObjectStoreEntry struct {
	ObjectStore *object_stores.ObjectStore `protobuf:"bytes,1,opt,name=object_store,json=objectStore" json:"object_store,omitempty"`
	Region      string                     `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"`
	Acl         string                     `protobuf:"bytes,3,opt,name=acl" json:"acl,omitempty"`
	Missing     bool                       `protobuf:"varint,4,opt,name=missing" json:"missing,omitempty"`
}

func (*ObjectStoreEntry) Descriptor

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

func (*ObjectStoreEntry) GetAcl

func (m *ObjectStoreEntry) GetAcl() string

func (*ObjectStoreEntry) GetMissing

func (m *ObjectStoreEntry) GetMissing() bool

func (*ObjectStoreEntry) GetObjectStore

func (m *ObjectStoreEntry) GetObjectStore() *object_stores.ObjectStore

func (*ObjectStoreEntry) GetRegion

func (m *ObjectStoreEntry) GetRegion() string

func (*ObjectStoreEntry) ProtoMessage

func (*ObjectStoreEntry) ProtoMessage()

func (*ObjectStoreEntry) Reset

func (m *ObjectStoreEntry) Reset()

func (*ObjectStoreEntry) String

func (m *ObjectStoreEntry) String() string

type RemoveReply

type RemoveReply struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*RemoveReply) Descriptor

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

func (*RemoveReply) GetName

func (m *RemoveReply) GetName() string

func (*RemoveReply) ProtoMessage

func (*RemoveReply) ProtoMessage()

func (*RemoveReply) Reset

func (m *RemoveReply) Reset()

func (*RemoveReply) String

func (m *RemoveReply) String() string

type RemoveRequest

type RemoveRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Force bool   `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
}

func (*RemoveRequest) Descriptor

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

func (*RemoveRequest) GetForce

func (m *RemoveRequest) GetForce() bool

func (*RemoveRequest) GetName

func (m *RemoveRequest) GetName() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) Reset

func (m *RemoveRequest) Reset()

func (*RemoveRequest) String

func (m *RemoveRequest) String() string

type Server

type Server struct {
	Accounts     accounts.Interface
	ObjectStores object_stores.Interface
	Provider     cloud.Provider
	Region       string
}

Server is used to implement objectStore.ObjectStoreServer

func (*Server) Create

func (s *Server) Create(ctx context.Context, in *CreateRequest) (*CreateReply, error)

Create implements objectStore.Server

func (*Server) Forget

func (s *Server) Forget(ctx context.Context, in *ForgetRequest) (*ForgetReply, error)

Forget implements object.Server

func (*Server) List

func (s *Server) List(ctx context.Context, in *ListRequest) (*ListReply, error)

List implements object.Server

func (*Server) Remove

func (s *Server) Remove(ctx context.Context, in *RemoveRequest) (*RemoveReply, error)

Remove implements object.Server

Jump to

Keyboard shortcuts

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