Documentation
¶
Index ¶
- func RegisterLolaServer(s *grpc.Server, srv LolaServer)
- type LolaClient
- type LolaServer
- type SpinUpRequest
- func (*SpinUpRequest) Descriptor() ([]byte, []int)
- func (m *SpinUpRequest) GetCapSysAdmin() bool
- func (m *SpinUpRequest) GetGid() int32
- func (m *SpinUpRequest) GetHomeBindPath() string
- func (m *SpinUpRequest) GetImage() string
- func (m *SpinUpRequest) GetName() string
- func (m *SpinUpRequest) GetNxPort() int32
- func (m *SpinUpRequest) GetPasswdHash() string
- func (m *SpinUpRequest) GetUid() int32
- func (m *SpinUpRequest) GetUsername() string
- func (*SpinUpRequest) ProtoMessage()
- func (m *SpinUpRequest) Reset()
- func (m *SpinUpRequest) String() string
- func (m *SpinUpRequest) XXX_DiscardUnknown()
- func (m *SpinUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpinUpRequest) XXX_Merge(src proto.Message)
- func (m *SpinUpRequest) XXX_Size() int
- func (m *SpinUpRequest) XXX_Unmarshal(b []byte) error
- type SpinUpResponse
- func (*SpinUpResponse) Descriptor() ([]byte, []int)
- func (m *SpinUpResponse) GetPorts() *SpinUpResponse_PortMap
- func (*SpinUpResponse) ProtoMessage()
- func (m *SpinUpResponse) Reset()
- func (m *SpinUpResponse) String() string
- func (m *SpinUpResponse) XXX_DiscardUnknown()
- func (m *SpinUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpinUpResponse) XXX_Merge(src proto.Message)
- func (m *SpinUpResponse) XXX_Size() int
- func (m *SpinUpResponse) XXX_Unmarshal(b []byte) error
- type SpinUpResponse_Bindings
- func (*SpinUpResponse_Bindings) Descriptor() ([]byte, []int)
- func (m *SpinUpResponse_Bindings) GetBinding() []*SpinUpResponse_Bindings_Binding
- func (*SpinUpResponse_Bindings) ProtoMessage()
- func (m *SpinUpResponse_Bindings) Reset()
- func (m *SpinUpResponse_Bindings) String() string
- func (m *SpinUpResponse_Bindings) XXX_DiscardUnknown()
- func (m *SpinUpResponse_Bindings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpinUpResponse_Bindings) XXX_Merge(src proto.Message)
- func (m *SpinUpResponse_Bindings) XXX_Size() int
- func (m *SpinUpResponse_Bindings) XXX_Unmarshal(b []byte) error
- type SpinUpResponse_Bindings_Binding
- func (*SpinUpResponse_Bindings_Binding) Descriptor() ([]byte, []int)
- func (m *SpinUpResponse_Bindings_Binding) GetHostIp() string
- func (m *SpinUpResponse_Bindings_Binding) GetHostPort() string
- func (*SpinUpResponse_Bindings_Binding) ProtoMessage()
- func (m *SpinUpResponse_Bindings_Binding) Reset()
- func (m *SpinUpResponse_Bindings_Binding) String() string
- func (m *SpinUpResponse_Bindings_Binding) XXX_DiscardUnknown()
- func (m *SpinUpResponse_Bindings_Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpinUpResponse_Bindings_Binding) XXX_Merge(src proto.Message)
- func (m *SpinUpResponse_Bindings_Binding) XXX_Size() int
- func (m *SpinUpResponse_Bindings_Binding) XXX_Unmarshal(b []byte) error
- type SpinUpResponse_PortMap
- func (*SpinUpResponse_PortMap) Descriptor() ([]byte, []int)
- func (m *SpinUpResponse_PortMap) GetPorts() map[string]*SpinUpResponse_Bindings
- func (*SpinUpResponse_PortMap) ProtoMessage()
- func (m *SpinUpResponse_PortMap) Reset()
- func (m *SpinUpResponse_PortMap) String() string
- func (m *SpinUpResponse_PortMap) XXX_DiscardUnknown()
- func (m *SpinUpResponse_PortMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpinUpResponse_PortMap) XXX_Merge(src proto.Message)
- func (m *SpinUpResponse_PortMap) XXX_Size() int
- func (m *SpinUpResponse_PortMap) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLolaServer ¶
func RegisterLolaServer(s *grpc.Server, srv LolaServer)
Types ¶
type LolaClient ¶
type LolaClient interface {
SpinUp(ctx context.Context, in *SpinUpRequest, opts ...grpc.CallOption) (*SpinUpResponse, error)
}
LolaClient is the client API for Lola service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLolaClient ¶
func NewLolaClient(cc *grpc.ClientConn) LolaClient
type LolaServer ¶
type LolaServer interface {
SpinUp(context.Context, *SpinUpRequest) (*SpinUpResponse, error)
}
LolaServer is the server API for Lola service.
type SpinUpRequest ¶
type SpinUpRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // bool host_mount = 2 [(wxio.dna.godna.help) = "mount /var/run into the container"]; NxPort int32 `protobuf:"varint,3,opt,name=nx_port,json=nxPort,proto3" json:"nx_port,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` PasswdHash string `protobuf:"bytes,6,opt,name=passwd_hash,json=passwdHash,proto3" json:"passwd_hash,omitempty"` Gid int32 `protobuf:"varint,7,opt,name=gid,proto3" json:"gid,omitempty"` Uid int32 `protobuf:"varint,8,opt,name=uid,proto3" json:"uid,omitempty"` HomeBindPath string `protobuf:"bytes,9,opt,name=home_bind_path,json=homeBindPath,proto3" json:"home_bind_path,omitempty"` CapSysAdmin bool `protobuf:"varint,10,opt,name=cap_sys_admin,json=capSysAdmin,proto3" json:"cap_sys_admin,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpinUpRequest) Descriptor ¶
func (*SpinUpRequest) Descriptor() ([]byte, []int)
func (*SpinUpRequest) GetCapSysAdmin ¶
func (m *SpinUpRequest) GetCapSysAdmin() bool
func (*SpinUpRequest) GetGid ¶
func (m *SpinUpRequest) GetGid() int32
func (*SpinUpRequest) GetHomeBindPath ¶
func (m *SpinUpRequest) GetHomeBindPath() string
func (*SpinUpRequest) GetImage ¶
func (m *SpinUpRequest) GetImage() string
func (*SpinUpRequest) GetName ¶
func (m *SpinUpRequest) GetName() string
func (*SpinUpRequest) GetNxPort ¶
func (m *SpinUpRequest) GetNxPort() int32
func (*SpinUpRequest) GetPasswdHash ¶
func (m *SpinUpRequest) GetPasswdHash() string
func (*SpinUpRequest) GetUid ¶
func (m *SpinUpRequest) GetUid() int32
func (*SpinUpRequest) GetUsername ¶
func (m *SpinUpRequest) GetUsername() string
func (*SpinUpRequest) ProtoMessage ¶
func (*SpinUpRequest) ProtoMessage()
func (*SpinUpRequest) Reset ¶
func (m *SpinUpRequest) Reset()
func (*SpinUpRequest) String ¶
func (m *SpinUpRequest) String() string
func (*SpinUpRequest) XXX_DiscardUnknown ¶
func (m *SpinUpRequest) XXX_DiscardUnknown()
func (*SpinUpRequest) XXX_Marshal ¶
func (m *SpinUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpinUpRequest) XXX_Merge ¶
func (m *SpinUpRequest) XXX_Merge(src proto.Message)
func (*SpinUpRequest) XXX_Size ¶
func (m *SpinUpRequest) XXX_Size() int
func (*SpinUpRequest) XXX_Unmarshal ¶
func (m *SpinUpRequest) XXX_Unmarshal(b []byte) error
type SpinUpResponse ¶
type SpinUpResponse struct { Ports *SpinUpResponse_PortMap `protobuf:"bytes,1,opt,name=ports,proto3" json:"ports,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpinUpResponse) Descriptor ¶
func (*SpinUpResponse) Descriptor() ([]byte, []int)
func (*SpinUpResponse) GetPorts ¶
func (m *SpinUpResponse) GetPorts() *SpinUpResponse_PortMap
func (*SpinUpResponse) ProtoMessage ¶
func (*SpinUpResponse) ProtoMessage()
func (*SpinUpResponse) Reset ¶
func (m *SpinUpResponse) Reset()
func (*SpinUpResponse) String ¶
func (m *SpinUpResponse) String() string
func (*SpinUpResponse) XXX_DiscardUnknown ¶
func (m *SpinUpResponse) XXX_DiscardUnknown()
func (*SpinUpResponse) XXX_Marshal ¶
func (m *SpinUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpinUpResponse) XXX_Merge ¶
func (m *SpinUpResponse) XXX_Merge(src proto.Message)
func (*SpinUpResponse) XXX_Size ¶
func (m *SpinUpResponse) XXX_Size() int
func (*SpinUpResponse) XXX_Unmarshal ¶
func (m *SpinUpResponse) XXX_Unmarshal(b []byte) error
type SpinUpResponse_Bindings ¶
type SpinUpResponse_Bindings struct { Binding []*SpinUpResponse_Bindings_Binding `protobuf:"bytes,1,rep,name=binding,proto3" json:"binding,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpinUpResponse_Bindings) Descriptor ¶
func (*SpinUpResponse_Bindings) Descriptor() ([]byte, []int)
func (*SpinUpResponse_Bindings) GetBinding ¶
func (m *SpinUpResponse_Bindings) GetBinding() []*SpinUpResponse_Bindings_Binding
func (*SpinUpResponse_Bindings) ProtoMessage ¶
func (*SpinUpResponse_Bindings) ProtoMessage()
func (*SpinUpResponse_Bindings) Reset ¶
func (m *SpinUpResponse_Bindings) Reset()
func (*SpinUpResponse_Bindings) String ¶
func (m *SpinUpResponse_Bindings) String() string
func (*SpinUpResponse_Bindings) XXX_DiscardUnknown ¶
func (m *SpinUpResponse_Bindings) XXX_DiscardUnknown()
func (*SpinUpResponse_Bindings) XXX_Marshal ¶
func (m *SpinUpResponse_Bindings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpinUpResponse_Bindings) XXX_Merge ¶
func (m *SpinUpResponse_Bindings) XXX_Merge(src proto.Message)
func (*SpinUpResponse_Bindings) XXX_Size ¶
func (m *SpinUpResponse_Bindings) XXX_Size() int
func (*SpinUpResponse_Bindings) XXX_Unmarshal ¶
func (m *SpinUpResponse_Bindings) XXX_Unmarshal(b []byte) error
type SpinUpResponse_Bindings_Binding ¶
type SpinUpResponse_Bindings_Binding struct { HostIp string `protobuf:"bytes,1,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` HostPort string `protobuf:"bytes,2,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpinUpResponse_Bindings_Binding) Descriptor ¶
func (*SpinUpResponse_Bindings_Binding) Descriptor() ([]byte, []int)
func (*SpinUpResponse_Bindings_Binding) GetHostIp ¶
func (m *SpinUpResponse_Bindings_Binding) GetHostIp() string
func (*SpinUpResponse_Bindings_Binding) GetHostPort ¶
func (m *SpinUpResponse_Bindings_Binding) GetHostPort() string
func (*SpinUpResponse_Bindings_Binding) ProtoMessage ¶
func (*SpinUpResponse_Bindings_Binding) ProtoMessage()
func (*SpinUpResponse_Bindings_Binding) Reset ¶
func (m *SpinUpResponse_Bindings_Binding) Reset()
func (*SpinUpResponse_Bindings_Binding) String ¶
func (m *SpinUpResponse_Bindings_Binding) String() string
func (*SpinUpResponse_Bindings_Binding) XXX_DiscardUnknown ¶
func (m *SpinUpResponse_Bindings_Binding) XXX_DiscardUnknown()
func (*SpinUpResponse_Bindings_Binding) XXX_Marshal ¶
func (m *SpinUpResponse_Bindings_Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpinUpResponse_Bindings_Binding) XXX_Merge ¶
func (m *SpinUpResponse_Bindings_Binding) XXX_Merge(src proto.Message)
func (*SpinUpResponse_Bindings_Binding) XXX_Size ¶
func (m *SpinUpResponse_Bindings_Binding) XXX_Size() int
func (*SpinUpResponse_Bindings_Binding) XXX_Unmarshal ¶
func (m *SpinUpResponse_Bindings_Binding) XXX_Unmarshal(b []byte) error
type SpinUpResponse_PortMap ¶
type SpinUpResponse_PortMap struct { Ports map[string]*SpinUpResponse_Bindings `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpinUpResponse_PortMap) Descriptor ¶
func (*SpinUpResponse_PortMap) Descriptor() ([]byte, []int)
func (*SpinUpResponse_PortMap) GetPorts ¶
func (m *SpinUpResponse_PortMap) GetPorts() map[string]*SpinUpResponse_Bindings
func (*SpinUpResponse_PortMap) ProtoMessage ¶
func (*SpinUpResponse_PortMap) ProtoMessage()
func (*SpinUpResponse_PortMap) Reset ¶
func (m *SpinUpResponse_PortMap) Reset()
func (*SpinUpResponse_PortMap) String ¶
func (m *SpinUpResponse_PortMap) String() string
func (*SpinUpResponse_PortMap) XXX_DiscardUnknown ¶
func (m *SpinUpResponse_PortMap) XXX_DiscardUnknown()
func (*SpinUpResponse_PortMap) XXX_Marshal ¶
func (m *SpinUpResponse_PortMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpinUpResponse_PortMap) XXX_Merge ¶
func (m *SpinUpResponse_PortMap) XXX_Merge(src proto.Message)
func (*SpinUpResponse_PortMap) XXX_Size ¶
func (m *SpinUpResponse_PortMap) XXX_Size() int
func (*SpinUpResponse_PortMap) XXX_Unmarshal ¶
func (m *SpinUpResponse_PortMap) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.