deploy

package
v0.0.0-...-2c89c80 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployCmd

func NewDeployCmd() *cobra.Command

func RunActivate

func RunActivate(opts *Options, args []string) error

func RunFetch

func RunFetch(opts *Options, args []string) error

func RunPrepare

func RunPrepare(opts *Options, args []string) (err error)

func RunUpload

func RunUpload(opts *Options, args []string) error

Types

type ActivateResult

type ActivateResult struct {
	Deploy struct {
		From             string `json:"from"`
		Timestamp        int64  `json:"timestamp"`
		InternalRedeploy bool   `json:"internalRedeploy"`
	} `json:"deploy"`
	Application struct {
		ID                       string `json:"id"`
		Checksum                 string `json:"checksum"`
		Generation               int    `json:"generation"`
		PreviousActiveGeneration int    `json:"previousActiveGeneration"`
	} `json:"application"`
	Tenant    string `json:"tenant"`
	SessionID string `json:"session-id"`
	Message   string `json:"message"`
	URL       string `json:"url"`
	ErrorCode string `json:"error-code"`
}

type CmdType

type CmdType int
const (
	CmdNone CmdType = iota
	CmdUpload
	CmdPrepare
	CmdActivate
	CmdFetch
)

type Options

type Options struct {
	Command CmdType

	Verbose bool
	DryRun  bool
	Force   bool
	Hosted  bool

	Application  string
	Environment  string
	From         string
	Instance     string
	Region       string
	Rotations    string
	ServerHost   string
	Tenant       string
	VespaVersion string

	Timeout    int
	PortNumber int
}

func (*Options) String

func (opts *Options) String() string

type PrepareResult

type PrepareResult struct {
	Log []struct {
		Time               int64  `json:"time"`
		Level              string `json:"level"`
		Message            string `json:"message"`
		ApplicationPackage bool   `json:"applicationPackage"`
	} `json:"log"`
	Tenant    string `json:"tenant"`
	SessionID string `json:"session-id"`
	Activate  string `json:"activate"`
	Message   string `json:"message"`
	ErrorCode string `json:"error-code"`
}

type UploadResult

type UploadResult struct {
	Log []struct {
		Time               int64  `json:"time"`
		Level              string `json:"level"`
		Message            string `json:"message"`
		ApplicationPackage bool   `json:"applicationPackage"`
	} `json:"log"`
	Tenant    string `json:"tenant"`
	SessionID string `json:"session-id"`
	Prepared  string `json:"prepared"`
	Content   string `json:"content"`
	Message   string `json:"message"`
	ErrorCode string `json:"error-code"`
}

Jump to

Keyboard shortcuts

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