data

package
v1.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DB = "db"

DB is used for referencing db type systems.

View Source
const SERVER = "server"

SERVER is used for referencing server type systems.

View Source
const TOOL = "tool"

TOOL is used for referencing tool type systems.

View Source
const WEB = "web"

WEB is used for referencing web type systems.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID          string     `json:"id"`
	Name        string     `json:"name"`
	Type        string     `json:"type"`
	User        string     `json:"user,omitempty"`
	Password    string     `json:"password,omitempty"`
	URL         string     `json:"url"`
	Server      string     `json:"server,omitempty"`
	DB          string     `json:"db,omitempty"`
	Host        string     `json:"host,omitempty"`
	Port        string     `json:"port,omitempty"`
	SID         string     `json:"sid,omitempty"`
	Env         string     `json:"env,omitempty"`
	Location    []string   `json:"location,omitempty"`
	Responsible []string   `json:"responsible,omitempty"`
	Notes       []string   `json:"notes,omitempty"`
	Users       []User     `json:"users,omitempty"`
	Meta        ConfigMeta `json:"-"`
}

Config stores data about a system, used for managing and exporting data.

type ConfigMeta

type ConfigMeta struct {
	IsValid bool
}

ConfigMeta contains properties which are not part of the system information, for internal use.

type Definition

type Definition struct {
	ID          string
	Name        string
	Type        string
	User        string
	Password    string
	URL         string
	Server      string
	DB          string
	Host        string
	Port        string
	SID         string
	Env         string
	Location    []string
	Responsible []string
	Notes       []string
	Users       []struct {
		Name     string
		User     string
		Password string
	}
}

Definition stores information about a system, used for importing data only.

type User

type User struct {
	Name     string `json:"name"`
	User     string `json:"user"`
	Password string `json:"password,omitempty"`
}

User contains information about login credentials.

type YamlData

type YamlData struct {
	Defs []Definition
}

YamlData stores information about all systems, used for importing data only.

Jump to

Keyboard shortcuts

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