models

package
v0.0.0-...-603707d Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	DB       string
	Host     string
	Port     string
	Theme    string
	Show     string
	ConfPath string
	YamlPath string
	KeyPath  string
	LogPath  string
	Interval string
	Quit     chan bool
	GrMap    map[string][]string
}

Conf - web gui config

type GuiData

type GuiData struct {
	Config Conf
	Icon   string
	Repo   Repo
	Plays  []Play
	Themes []string
	Len    int
	Keys   []Key
	File   string
}

GuiData - web gui data

type Host

type Host struct {
	Name   string
	Groups []string
}

Host - one host and its groups

type Key

type Key struct {
	ID    int    `db:"ID"`
	Date  string `db:"DATE"`
	Name  string `db:"NAME"`
	File  string `db:"FILE"`
	State string `db:"STATE"`
}

Key - ssh key

type Play

type Play struct {
	ID    int    `db:"ID"`
	Date  string `db:"DATE"`
	Host  string `db:"HOST"`
	File  string `db:"FILE"`
	Head  string `db:"HEAD"`
	Inv   string `db:"INV"`
	Out   string `db:"OUT"`
	Error string `db:"ERROR"`
	Color string `db:"COLOR"`
}

Play - info about ansible-playbook run

type Repo

type Repo struct {
	Path  string `yaml:"path"`
	Head  string `yaml:"head"`
	Inv   string `yaml:"inventory"`
	Hosts []Host `yaml:"hosts"`
}

Repo - git repository

Jump to

Keyboard shortcuts

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