Documentation ¶
Overview ¶
Package image is a generated protocol buffer package.
It is generated from these files:
github.com/appcelerator/amp/api/rpc/image/image.proto
It has these top-level messages:
PushRequest PushReply ListRequest ImageEntry RepositoryEntry ListReply RemoveRequest RemoveReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterImageServer ¶
func RegisterImageServer(s *grpc.Server, srv ImageServer)
Types ¶
type ImageClient ¶
type ImageClient interface { ImagePush(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushReply, error) ImageList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error) ImageRemove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error) }
func NewImageClient ¶
func NewImageClient(cc *grpc.ClientConn) ImageClient
type ImageEntry ¶
type ImageEntry struct { Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest" json:"digest,omitempty"` }
func (*ImageEntry) Descriptor ¶
func (*ImageEntry) Descriptor() ([]byte, []int)
func (*ImageEntry) GetDigest ¶
func (m *ImageEntry) GetDigest() string
func (*ImageEntry) GetTag ¶
func (m *ImageEntry) GetTag() string
func (*ImageEntry) ProtoMessage ¶
func (*ImageEntry) ProtoMessage()
func (*ImageEntry) Reset ¶
func (m *ImageEntry) Reset()
func (*ImageEntry) String ¶
func (m *ImageEntry) String() string
type ImageServer ¶
type ImageServer interface { ImagePush(context.Context, *PushRequest) (*PushReply, error) ImageList(context.Context, *ListRequest) (*ListReply, error) ImageRemove(context.Context, *RemoveRequest) (*RemoveReply, error) }
type ListReply ¶
type ListReply struct {
Entries []*RepositoryEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
}
func (*ListReply) Descriptor ¶
func (*ListReply) GetEntries ¶
func (m *ListReply) GetEntries() []*RepositoryEntry
func (*ListReply) ProtoMessage ¶
func (*ListReply) ProtoMessage()
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 PushReply ¶
type PushReply struct {
Digest string `protobuf:"bytes,1,opt,name=digest" json:"digest,omitempty"`
}
func (*PushReply) Descriptor ¶
func (*PushReply) ProtoMessage ¶
func (*PushReply) ProtoMessage()
type PushRequest ¶
type PushRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*PushRequest) Descriptor ¶
func (*PushRequest) Descriptor() ([]byte, []int)
func (*PushRequest) GetData ¶
func (m *PushRequest) GetData() []byte
func (*PushRequest) GetName ¶
func (m *PushRequest) GetName() string
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) Reset ¶
func (m *PushRequest) Reset()
func (*PushRequest) String ¶
func (m *PushRequest) String() string
type RemoveReply ¶
type RemoveReply struct { }
func (*RemoveReply) Descriptor ¶
func (*RemoveReply) Descriptor() ([]byte, []int)
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"` Digest string `protobuf:"bytes,2,opt,name=digest" json:"digest,omitempty"` }
func (*RemoveRequest) Descriptor ¶
func (*RemoveRequest) Descriptor() ([]byte, []int)
func (*RemoveRequest) GetDigest ¶
func (m *RemoveRequest) GetDigest() string
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 RepositoryEntry ¶
type RepositoryEntry struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Entries []*ImageEntry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` }
func (*RepositoryEntry) Descriptor ¶
func (*RepositoryEntry) Descriptor() ([]byte, []int)
func (*RepositoryEntry) GetEntries ¶
func (m *RepositoryEntry) GetEntries() []*ImageEntry
func (*RepositoryEntry) GetName ¶
func (m *RepositoryEntry) GetName() string
func (*RepositoryEntry) ProtoMessage ¶
func (*RepositoryEntry) ProtoMessage()
func (*RepositoryEntry) Reset ¶
func (m *RepositoryEntry) Reset()
func (*RepositoryEntry) String ¶
func (m *RepositoryEntry) String() string
type Server ¶
Server server information
func (*Server) ImageRemove ¶
func (s *Server) ImageRemove(ctx context.Context, in *RemoveRequest) (*RemoveReply, error)
Click to show internal directories.
Click to hide internal directories.