listeners

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetCurrentTenant = getCurrentTenant

GetCurrentTenant contains the current tenant

View Source
var NewVolumeService = services.NewVolumeService

NewVolumeService ...

Functions

This section is empty.

Types

type BucketServiceListener

type BucketServiceListener struct{}

BucketServiceListener is the bucket service grpc server

func (*BucketServiceListener) Create

Create a new bucket

func (*BucketServiceListener) Delete

Delete a bucket

func (*BucketServiceListener) Inspect

Inspect a bucket

func (*BucketServiceListener) List

List available buckets

func (*BucketServiceListener) Mount

Mount a bucket on the filesystem of the host

func (*BucketServiceListener) Unmount

Unmount a bucket from the filesystem of the host

type HostServiceListener

type HostServiceListener struct{}

HostServiceListener host service server grpc

func (*HostServiceListener) Create

func (s *HostServiceListener) Create(ctx context.Context, in *pb.HostDefinition) (*pb.Host, error)

Create a new host

func (*HostServiceListener) Delete

Delete an host

func (*HostServiceListener) Inspect

func (s *HostServiceListener) Inspect(ctx context.Context, in *pb.Reference) (*pb.Host, error)

Inspect an host

func (*HostServiceListener) List

List available hosts

func (*HostServiceListener) Reboot

Reboot ...

func (*HostServiceListener) SSH

SSH returns ssh parameters to access an host

func (*HostServiceListener) Start

Start ...

func (*HostServiceListener) Status

Status of a host

func (*HostServiceListener) Stop

Stop ...

type ImageServiceListener

type ImageServiceListener struct{}

ImageServiceListener image service server grpc

func (*ImageServiceListener) List

List available images

type NetworkServiceListener

type NetworkServiceListener struct{}

NetworkServiceListener network service server grpc

func (*NetworkServiceListener) Create

Create a new network

func (*NetworkServiceListener) Delete

Delete a network

func (*NetworkServiceListener) Inspect

func (s *NetworkServiceListener) Inspect(ctx context.Context, in *pb.Reference) (*pb.Network, error)

Inspect returns infos on a network

func (*NetworkServiceListener) List

List existing networks

type SSHServiceListener

type SSHServiceListener struct{}

SSHServiceListener SSH service server grpc

func (*SSHServiceListener) Copy

Copy copy file from/to an host

func (*SSHServiceListener) Run

Run executes an ssh command an an host

type ShareServiceListener

type ShareServiceListener struct{}

ShareServiceListener Share service server grpc

func (*ShareServiceListener) Create

Create calls share service creation

func (*ShareServiceListener) Delete

Delete call share service deletion

func (*ShareServiceListener) Inspect

Inspect shows the detail of a share and all connected clients

func (*ShareServiceListener) List

List return the list of all available shares

func (*ShareServiceListener) Mount

Mount mounts share on a local directory of the given host

func (*ShareServiceListener) Unmount

Unmount unmounts share from the given host

type StoredCPUInfo

type StoredCPUInfo struct {
	ID           string `bow:"key"`
	TenantName   string `json:"tenant_name,omitempty"`
	TemplateID   string `json:"template_id,omitempty"`
	TemplateName string `json:"template_name,omitempty"`
	ImageID      string `json:"image_id,omitempty"`
	ImageName    string `json:"image_name,omitempty"`
	LastUpdated  string `json:"last_updated,omitempty"`

	NumberOfCPU    int     `json:"number_of_cpu,omitempty"`
	NumberOfCore   int     `json:"number_of_core,omitempty"`
	NumberOfSocket int     `json:"number_of_socket,omitempty"`
	CPUFrequency   float64 `json:"cpu_frequency,omitempty"`
	CPUArch        string  `json:"cpu_arch,omitempty"`
	Hypervisor     string  `json:"hypervisor,omitempty"`
	CPUModel       string  `json:"cpu_model,omitempty"`
	RAMSize        float64 `json:"ram_size,omitempty"`
	RAMFreq        float64 `json:"ram_freq,omitempty"`
	GPU            int     `json:"gpu,omitempty"`
	GPUModel       string  `json:"gpu_model,omitempty"`
}

StoredCPUInfo ...

type TemplateServiceListener

type TemplateServiceListener struct{}

TemplateServiceListener host service server grpc

func (*TemplateServiceListener) List

List available templates

type Tenant

type Tenant struct {
	Service *providers.Service
	// contains filtered or unexported fields
}

Tenant structure to handle name and clientAPI for a tenant

type TenantServiceListener

type TenantServiceListener struct{}

TenantServiceListener server is used to implement SafeScale.broker.

func (*TenantServiceListener) Get

Get returns the name of the current tenant used

func (*TenantServiceListener) List

List registerd tenants

func (*TenantServiceListener) Set

Set the the tenant tu use for each command

type VolumeServiceListener

type VolumeServiceListener struct{}

VolumeServiceListener is the volume service grps server

func (*VolumeServiceListener) Attach

Attach a volume to an host and create a mount point

func (*VolumeServiceListener) Create

Create a new volume

func (*VolumeServiceListener) Delete

Delete a volume

func (*VolumeServiceListener) Detach

Detach a volume from an host. It umount associated mountpoint

func (*VolumeServiceListener) Inspect

Inspect a volume

func (*VolumeServiceListener) List

List the available volumes

Jump to

Keyboard shortcuts

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