libops

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(cmd *cobra.Command, tokenArg string) (string, error)

func IssueCommand

func IssueCommand(site, env, cmd, args, token string) error

func LoadEnvironment

func LoadEnvironment(cmd *cobra.Command) (string, string, error)

func WaitUntilOnline

func WaitUntilOnline(site, env, token string) error

func WakeEnvironment

func WakeEnvironment(site, env, token string) error

Types

type ConnectionInfo

type ConnectionInfo struct {
	Blazegraph *TlsService `json:"blazegraph,omitempty"`
	Database   *TcpService `json:"database"`
	Drupal     *TlsService `json:"drupal,omitempty"`
	Fcrepo     *TlsService `json:"fcrepo,omitempty"`
	Iiif       *TlsService `json:"iiif,omitempty"`
	Matomo     *TlsService `json:"matomo,omitempty"`
	Solr       *TlsService `json:"solr,omitempty"`
	Ssh        *TcpService `json:"ssh,omitempty"`
}

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password,omitempty"`
}

type TcpService

type TcpService struct {
	Host        string       `json:"host"`
	Name        string       `json:"name,omitempty"`
	Port        int          `json:"port"`
	Credentials *Credentials `json:"credentials"`
}

type TlsService

type TlsService struct {
	Url         string       `json:"url"`
	Credentials *Credentials `json:"credentials,omitempty"`
}

type Yml added in v0.4.3

type Yml struct {
	Version       float32             `yaml:"version"`
	Php           float32             `yaml:"php"`
	HttpsFirewall []string            `yaml:"https-firewall"`
	SshFirewall   []string            `yaml:"ssh-firewall"`
	BlockedIps    []string            `yaml:"blocked-ips"`
	Developers    map[string][]string `yaml:"developers"`
	MariaDB       string              `yaml:"mariadb,omitempty"`
	Solr          int                 `yaml:"solr,omitempty"`
	DomainMapping map[string][]string `yaml:"domain-mappings,omitempty"`
}

Jump to

Keyboard shortcuts

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