Documentation ¶
Index ¶
- func CheckCompute(requestCpus, totalCpus uint32, requestMemory, totalMemory uint64, ...) error
- func CheckStorage(request, total uint64, reserved map[string]*pbudget.Storage) error
- func GetIpmiAddress() string
- func GetSerial() string
- func GetTotalCPUMilliCores() uint32
- func GetTotalMemory() (uint64, error)
- func RegisterNodeToAPI(name, advertiseAddress, api string) error
- type NodeAPI
- func (a NodeAPI) ApplyNode(ctx context.Context, req *ppool.ApplyNodeRequest) (*ppool.Node, error)
- func (a NodeAPI) DeleteNode(ctx context.Context, req *ppool.DeleteNodeRequest) (*empty.Empty, error)
- func (a NodeAPI) GetNode(ctx context.Context, req *ppool.GetNodeRequest) (*ppool.Node, error)
- func (a NodeAPI) ListNodes(ctx context.Context, req *ppool.ListNodesRequest) (*ppool.ListNodesResponse, error)
- func (a NodeAPI) ReleaseCompute(ctx context.Context, req *ppool.ReleaseComputeRequest) (*empty.Empty, error)
- func (a NodeAPI) ReleaseStorage(ctx context.Context, req *ppool.ReleaseStorageRequest) (*empty.Empty, error)
- func (a NodeAPI) ReserveCompute(ctx context.Context, req *ppool.ReserveComputeRequest) (*ppool.Node, error)
- func (a NodeAPI) ReserveStorage(ctx context.Context, req *ppool.ReserveStorageRequest) (*ppool.Node, error)
- func (a NodeAPI) ScheduleCompute(ctx context.Context, req *ppool.ScheduleComputeRequest) (*ppool.Node, error)
- func (a NodeAPI) ScheduleStorage(ctx context.Context, req *ppool.ScheduleStorageRequest) (*ppool.Node, error)
- type NodeConnections
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCompute ¶
func CheckStorage ¶
func GetTotalCPUMilliCores ¶
func GetTotalCPUMilliCores() uint32
func GetTotalMemory ¶
func RegisterNodeToAPI ¶
TODO: エラーハンドリング適当
Types ¶
type NodeAPI ¶
type NodeAPI struct {
// contains filtered or unexported fields
}
func (NodeAPI) DeleteNode ¶
func (NodeAPI) ReleaseCompute ¶
func (NodeAPI) ReleaseStorage ¶
func (NodeAPI) ReserveCompute ¶
func (NodeAPI) ReserveStorage ¶
func (NodeAPI) ScheduleCompute ¶
type NodeConnections ¶
type NodeConnections struct {
NodeAPI ppool.NodeServiceClient
}
TODO: APIを叩く回数を減らす
func NewNodeConnections ¶
func NewNodeConnections(api string) (*NodeConnections, error)
func (NodeConnections) GetConnection ¶
func (nc NodeConnections) GetConnection(nodeName string) (*grpc.ClientConn, error)
GetConnection return a connection to Node having name of arguments.
func (NodeConnections) IsExisting ¶
func (nc NodeConnections) IsExisting(nodeName string) (bool, error)
Click to show internal directories.
Click to hide internal directories.