machines

package
v0.0.0-...-96838bd Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMachineExistance

func CheckMachineExistance(ctx context.Context, c *mycontext.Context, machineId string) bool

func CreateMachine

func CreateMachine(ctx context.Context, c *mycontext.Context, machineId string, machineName string, machineGroups []string, machineHostname string, nodeId string) (*models.Machine, error)

func GetAll

func GetAll(ctx context.Context, c *mycontext.Context) ([]models.Machine, error)

func GetById

func GetById(ctx context.Context, c *mycontext.Context, id string) (*models.Machine, error)

func SetInterfaces

func SetInterfaces(ctx context.Context, c *mycontext.Context, machineId string, i []models.Interface) error

func UpdateMachine

func UpdateMachine(ctx context.Context, c *mycontext.Context, machineId string, machineName string, machineGroups []string, machineHostname string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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