hosts

package
Version: v0.0.0-...-9e745d5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	ID       int64              `json:"id"`
	Host     string             `json:"host"`
	Type     string             `json:"type,omitempty"`
	User     string             `json:"user,omitempty"`
	Password string             `json:"password,omitempty"`
	State    string             `json:"state"`
	Projects []string           `json:"projects"`
	DBClient *postgres.PGClient `json:",omitempty"`
}

Host - Generators struct

func (Host) Create

func (h Host) Create() error

Create - func for insert new host, from database

func (Host) Delete

func (h Host) Delete() error

Delete - func for udelete host

func (Host) IfExist

func (h Host) IfExist() (bool, error)

IfExist -

func (Host) New

func (h Host) New() subset.Host

New - func to return new host interface

func (Host) Update

func (h Host) Update() error

Update - func for udpate generator, from database

Source Files

Jump to

Keyboard shortcuts

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