output

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Status        string                   `json:"status"`
	Filename      string                   `json:"filename"`
	Configuration ApplicationConfiguration `json:"configuration"`
	Folder        string                   `json:"folder"`
	BaseFolder    string                   `json:"baseFolder"`
	BranchesMap   map[string]Branch        `json:"branchesMap"`
	TagsMap       map[string]Tag           `json:"tagsMap"`
}

type ApplicationConfiguration

type ApplicationConfiguration struct {
	Name                  string            `json:"name"`
	ID                    string            `json:"id"`
	Remote                string            `json:"remote"`
	Target                string            `json:"target"`
	Host                  string            `json:"host"`
	Fetch                 Fetch             `json:"fetch"`
	Watch                 []string          `json:"watch"`
	Helper                Helper            `json:"helper"`
	IsDefault             bool              `json:"isDefault"`
	Forwards              []Forward         `json:"forwards"`
	Headers               Headers           `json:"headers"`
	Healthcheck           Healthcheck       `json:"healthCheck"`
	Startup               Startup           `json:"startup"`
	Recycle               Recycle           `json:"recycle"`
	Commands              Commands          `json:"commands"`
	MaxConcurrentSessions int               `json:"maxConcurrentSessions"`
	Port                  PortConfiguration `json:"port"`
	UseFolderCopy         bool              `json:"useFolderCopy"`
	CleanOnExit           bool              `json:"cleanOnExit"`
	Warmup                Warmups           `json:"warmups"`
}

type Branch

type Branch struct {
	CheckoutObject
}

type CheckoutObject

type CheckoutObject struct {
	Name        string    `json:"name"`
	Hash        string    `json:"hash"`
	Author      string    `json:"author"`
	AuthorEmail string    `json:"authorEmail"`
	Date        time.Time `json:"date"`
	Message     string    `json:"message"`
}

type Command

type Command struct {
	Command             string   `json:"command"`
	Environment         []string `json:"environment"`
	OutputVariable      string   `json:"outputVariable"`
	ContinueOnError     bool     `json:"continueOnError"`
	WorkingDir          string   `json:"workingDir"`
	StartHealthchecking bool     `json:"startHealthchecking"`
	Timeout             int      `json:"timeout"`
}

type Commands

type Commands struct {
	Start []Command `json:"start"`
	Stop  []Command `json:"stop"`
}

type Fetch

type Fetch struct {
	Interval int `json:"interval"`
}

type Forward

type Forward struct {
	Pattern string  `json:"pattern"`
	To      string  `json:"to"`
	Host    string  `json:"host"`
	Headers Headers `json:"headers"`
}

type Headers

type Headers struct {
	Add     []string `json:"add"`
	Set     []string `json:"set"`
	Del     []string `json:"del"`
	Replace []string `json:"replace"`
}

type Healthcheck

type Healthcheck struct {
	Method        string `json:"method"`
	URL           string `json:"url"`
	Status        int    `json:"status"`
	MaxRetries    int    `json:"maxRetries"`
	RetryInterval int    `json:"retryInterval"`
	Timeout       int    `json:"timeout"`
}

type Helper

type Helper struct {
	Position string `json:"position"`
}

type Metric

type Metric struct {
	Object   string `json:"object"`
	Duration int    `json:"duration"`
}

type PortConfiguration

type PortConfiguration struct {
	Except []int `json:"except"`
}

type Recycle

type Recycle struct {
	InactivityTimeout int `json:"inactivityTimeout"`
}

type Session

type Session struct {
	SessionStatus     `json:",inline"`
	UUID              string               `json:"uuid"`
	Name              string               `json:"name"`
	Target            string               `json:"target"`
	Port              int                  `json:"port"`
	ApplicationName   string               `json:"applicationName"`
	CommitID          string               `json:"commitID"` // The object to be checked out (branch/tag/commit id)
	CommitMessage     string               `json:"commitMessage"`
	CommitAuthorName  string               `json:"commitAuthorName"`
	CommitAuthorEmail string               `json:"commitAuthorEmail"`
	CommitDate        time.Time            `json:"commitDate"`
	CreatedAt         time.Time            `json:"createdAt"`
	Checkout          string               `json:"checkout"`
	Folder            string               `json:"folder"`
	Variables         map[string]string    `json:"variables"`
	Logs              []SessionLog         `json:"-"`
	Metrics           []Metric             `json:"metrics"`
	ReplacesSession   string               `json:"replacesSession,omitempty"`
	Configuration     SessionConfiguration `json:"configuration"`
}

type SessionConfiguration

type SessionConfiguration struct {
	// Application configuration
	IsDefault bool `json:"isDefault"`
	// Branch configuration
	Watch bool `json:"watch"`
}

type SessionLog

type SessionLog struct {
	When    time.Time `json:"when"`
	UUID    string    `json:"uuid"`
	Type    string    `json:"type"`
	Message string    `json:"message"`
}

type SessionStatus

type SessionStatus struct {
	Status     string `json:"status"`
	Age        int    `json:"age"`
	KillReason string `json:"killReason"`
	ReplacedBy string `json:"replacedBy"`
}

type Startup

type Startup struct {
	Timeout int `json:"timeout"`
	Retries int `json:"retries"`
}

type Tag

type Tag struct {
	CheckoutObject
}

type Warmup

type Warmup struct {
	Method  string `json:"method"`
	URL     string `json:"url"`
	Status  int    `json:"status"`
	Timeout int    `json:"timeout"`
}

type Warmups

type Warmups struct {
	MaxRetries    int      `json:"maxRetries"`
	RetryInterval int      `json:"retryInterval"`
	URLs          []Warmup `json:"warmup"`
}

Jump to

Keyboard shortcuts

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