deps

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dep

type Dep struct {
	ID            int                             `json:"id"`
	StateTarget   scripts.State                   `json:"state_target"`
	User          scripts.User                    `json:"user"`
	Credentials   map[string][]scripts.Credential `json:"credentials"`
	Questionnaire map[string]string               `json:"questionnaire"`

	// this relates to the polymorphic type added by the polymorphic serializer
	ResourceType string `json:"resourcetype"`

	// VO is only set if this is a VODeployment
	VO VO `json:"vo,omitempty"`

	// Service may be filled by scheduleDep
	Service config.Service `json:"service,omitempty"`
}

Dep describes a deployment action

func (Dep) Log

func (dep Dep) Log(formatString string, params ...interface{})

Log logs a message for a Dep

func (Dep) String

func (dep Dep) String() string

type Reply

type Reply struct {
	// ID of the according Dep (at the backend: DeploymentState)
	ID     int            `json:"id"`
	Output scripts.Output `json:"output"`

	// Service is the service for which we performed the deploy action
	Service config.Service `json:"service"`
}

Reply is sent back to the backend to inform it about executed deployment actions

func (Reply) Log

func (rep Reply) Log(formatString string, params ...interface{})

Log logs a message for a Reply

func (Reply) String

func (rep Reply) String() string

type VO

type VO struct {
	ID           int    `json:"id"`
	Name         string `json:"name"`
	ResourceType string `json:"resourcetype"`
}

VO virtual organisation

Jump to

Keyboard shortcuts

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