machines

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service contains business logic for node in particular cloud provider

func NewService

func NewService(prefix string, s storage.Interface) *Service

NewService constructs a Service.

func (*Service) Create

func (s *Service) Create(ctx context.Context, node *model.Machine) error

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, nodeId string) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, nodeId string) (*model.Machine, error)

func (*Service) ListAll

func (s *Service) ListAll(ctx context.Context) ([]model.Machine, error)

Jump to

Keyboard shortcuts

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