cmd

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: BSD-2-Clause Imports: 25 Imported by: 0

Documentation

Overview

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Package cmd Copyright 2021 VMware, Inc. SPDX-License-Identifier: BSD-2-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, filename string, basedir string) error

func Execute

func Execute()

Execute is the main process

func PrettyPrint

func PrettyPrint(v interface{}) (err error)

PrettyPrint prints interfaces

func PrintTable

func PrintTable(objects []interface{}, headers []string)

PrintTable prints an array of objects with table headers

func ZipFiles

func ZipFiles(filename string, files []string, basedir string) error

Types

type ApiAuthentication

type ApiAuthentication struct {
	RefreshToken string `json:"refreshToken"`
}

ApiAuthentication - vRA Authentication request structure for API login with a refresh token

type ApiAuthenticationError

type ApiAuthenticationError struct {
	Message       string `json:"message"`
	StatusCode    int64  `json:"statusCode"`
	ErrorCode     int64  `json:"errorCode"`
	ServerErrorId string `json:"serverErrorId"`
	DocumentKind  string `json:"documentKind"`
}

ApiAuthenticationError - API Authentication error structure

type ApiAuthenticationResponse

type ApiAuthenticationResponse struct {
	TokenType   string `json:"tokenType"`
	Token       string `json:"token"`
	AccessToken string `json:"access_token"`
}

ApiAuthenticationResponse - Authentication response structure for API login with a refresh token

type AuthenticationError

type AuthenticationError struct {
	Timestamp     int64  `json:"timestamp"`
	Type          string `json:"type"`
	Status        string `json:"status"`
	Error         string `json:"error"`
	ServerMessage string `json:"serverMessage"`
}

AuthenticationError - Authentication error structure

type AuthenticationRequest

type AuthenticationRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Domain   string `json:"domain"`
}

AuthenticationRequest - vRA Authentication request structure

type AuthenticationResponse

type AuthenticationResponse struct {
	Scope        string `json:"scope"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	IDToken      string `json:"id_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
}

AuthenticationResponse - Authentication response structure

type CodeStreamCreateExecutionRequest

type CodeStreamCreateExecutionRequest struct {
	Comments string      `json:"comments"`
	Input    interface{} `json:"input"`
}

CodeStreamCreateExecutionRequest - Code Stream Create Execution Request

type CodeStreamCreateExecutionResponse

type CodeStreamCreateExecutionResponse struct {
	Comments      string      `json:"comments"`
	Source        string      `json:"source"`
	Input         interface{} `json:"input"`
	ExecutionLink string      `json:"executionLink"`
	Tags          []string    `json:"tags"`
}

CodeStreamCreateExecutionResponse - Code Stream Create Execution Response

type CodeStreamCustomIntegration

type CodeStreamCustomIntegration struct {
	ID                 string `json:"id"`
	Name               string `json:"name"`
	Description        string `json:"description"`
	Version            string `json:"version"`
	CreatedBy          string `json:"createdBy"`
	UpdatedBy          string `json:"updatedBy"`
	CreatedAt          string `json:"createdAt"`
	UpdatedAt          string `json:"updatedAt"`
	Link               string `json:"_link"`
	UpdateTimeInMicros int64  `json:"_updateTimeInMicros"`
	CreateTimeInMicros int64  `json:"_createTimeInMicros"`
	Status             string `json:"status"`
	Yaml               string `json:"yaml"`
}

CodeStreamCustomIntegration - Code Stream Custom Integration

type CodeStreamEndpoint

type CodeStreamEndpoint struct {
	Project            string      `json:"project"`
	Kind               string      `json:"kind"`
	ID                 string      `json:"id"`
	Name               string      `json:"name"`
	Description        string      `json:"description"`
	CreatedBy          string      `json:"createdBy"`
	UpdatedBy          string      `json:"updatedBy"`
	CreatedAt          string      `json:"createdAt"`
	UpdatedAt          string      `json:"updatedAt"`
	Link               string      `json:"_link"`
	UpdateTimeInMicros int64       `json:"_updateTimeInMicros"`
	CreateTimeInMicros int64       `json:"_createTimeInMicros"`
	ProjectID          string      `json:"_projectId"`
	Type               string      `json:"type"`
	IsRestricted       bool        `json:"isRestricted"`
	Properties         interface{} `json:"properties"`
	IsLocked           bool        `json:"isLocked"`
	ValidationOutput   string      `json:"validationOutput"`
}

CodeStreamEndpoint - Code Stream Create Endpoint

type CodeStreamEndpointYaml

type CodeStreamEndpointYaml struct {
	Project     string            `yaml:"project"`
	Kind        string            `yaml:"kind"`
	Name        string            `yaml:"name"`
	Description string            `yaml:"description"`
	Type        string            `yaml:"type"`
	Properties  map[string]string `yaml:"properties"`
}

type CodeStreamException

type CodeStreamException struct {
	Timestamp int64  `json:"timestamp"`
	Path      string `json:"path"`
	Status    int    `json:"status"`
	Error     string `json:"error"`
	Message   string `json:"message"`
	RequestID string `json:"requestId"`
	Type      string `json:"@type"`
}

CodeStreamException - Generic exception struct

type CodeStreamPipeline

type CodeStreamPipeline struct {
	Project            string `json:"project"`
	Kind               string `json:"kind"`
	ID                 string `json:"id"`
	Name               string `json:"name"`
	Description        string `json:"description"`
	CreatedBy          string `json:"createdBy"`
	UpdatedBy          string `json:"updatedBy"`
	CreatedAt          string `json:"createdAt"`
	UpdatedAt          string `json:"updatedAt"`
	Link               string `json:"_link"`
	UpdateTimeInMicros int64  `json:"_updateTimeInMicros"`
	CreateTimeInMicros int64  `json:"_createTimeInMicros"`
	ProjectID          string `json:"_projectId"`
	Icon               string `json:"icon"`
	Enabled            bool   `json:"enabled"`
	Concurrency        int    `json:"concurrency"`
	Input              interface {
	} `json:"input"`
	Output interface {
	} `json:"output"`
	Starred struct {
	} `json:"starred"`
	StageOrder    []string               `json:"stageOrder"`
	Stages        map[string]interface{} `json:"stages"`
	Notifications struct {
		Email   []interface{} `json:"email"`
		Jira    []interface{} `json:"jira"`
		Webhook []interface{} `json:"webhook"`
	} `json:"notifications"`
	Options   []interface{} `json:"options"`
	Workspace struct {
		Image    string        `json:"image"`
		Path     string        `json:"path"`
		Endpoint string        `json:"endpoint"`
		Cache    []interface{} `json:"cache"`
		Limits   struct {
			CPU    float64 `json:"cpu"`
			Memory int     `json:"memory"`
		} `json:"limits"`
		AutoCloneForTrigger bool `json:"autoCloneForTrigger"`
	} `json:"workspace"`
	InputMeta  interface{}   `json:"_inputMeta"`
	OutputMeta interface{}   `json:"_outputMeta"`
	Warnings   []interface{} `json:"_warnings"`
	Rollbacks  []interface{} `json:"rollbacks"`
	Tags       []string      `json:"tags"`
	State      string        `json:"state"`
}

CodeStreamPipeline - Code Stream Pipeline API

type CodeStreamPipelineImportResponse

type CodeStreamPipelineImportResponse struct {
	Name          string `yaml:"name"`
	Status        string `yaml:"status"`
	StatusMessage string `yaml:"statusMessage"`
}

CodeStreamException - Generic exception struct

type CodeStreamPipelineStage

type CodeStreamPipelineStage struct {
	Tags      []string               `json:"tags"`
	TaskOrder []string               `json:"taskOrder"`
	Tasks     map[string]interface{} `json:"tasks"`
}

type CodeStreamPipelineTask

type CodeStreamPipelineTask struct {
	Configured    bool              `json:"_configured"`
	Endpoints     map[string]string `json:"endpoints"`
	IgnoreFailure bool              `json:"ignoreFailure"`
	Input         struct {
		InputProperties map[string]string `json:"inputProperties"`
		Action          string            `json:"action"`
		Blueprint       string            `json:"blueprint"`
		Name            string            `json:"name"`
		Parameters      map[string]string `json:"parameters"`
		Properties      map[string]string `json:"properties"`
		Pipeline        string            `json:"pipeline"`
	} `json:"input"`
	PreCondition string   `json:"preCondition"`
	Tags         []string `json:"tags"`
	Type         string   `json:"type"`
}

type CodeStreamPipelineYaml

type CodeStreamPipelineYaml struct {
	Project     string      `yaml:"project"`
	Kind        string      `yaml:"kind"`
	Name        string      `yaml:"name"`
	Icon        string      `yaml:"icon"`
	Enabled     bool        `yaml:"enabled"`
	Description string      `yaml:"description"`
	Concurrency int         `yaml:"concurrency"`
	Input       interface{} `yaml:"input"`
	InputMeta   interface{} `yaml:"_inputMeta"`
	Workspace   interface{} `yaml:"workspace"`
	StageOrder  []string    `yaml:"stageOrder"`
	Stages      interface{} `yaml:"stages"`
}

type CodeStreamProject

type CodeStreamProject struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	Description    string `json:"description"`
	OrgID          string `json:"orgId"`
	Administrators []struct {
		Email string `json:"email"`
		Type  string `json:"type"`
	} `json:"administrators"`
	Members     []interface{} `json:"members"`
	Viewers     []interface{} `json:"viewers"`
	Constraints struct {
	} `json:"constraints"`
	Properties struct {
		NamingTemplate string `json:"__namingTemplate"`
	} `json:"properties"`
	OperationTimeout int  `json:"operationTimeout"`
	SharedResources  bool `json:"sharedResources"`
}

CodeStreamProject - Project-Service struct

type CodeStreamProjectList

type CodeStreamProjectList struct {
	Content  []CodeStreamProject `json:"content"`
	Pageable struct {
		Offset int `json:"offset"`
		Sort   struct {
			Sorted   bool `json:"sorted"`
			Unsorted bool `json:"unsorted"`
			Empty    bool `json:"empty"`
		} `json:"sort"`
		QueryInfo struct {
			CustomOptions struct {
			} `json:"customOptions"`
			Expand []interface{} `json:"expand"`
			Select []interface{} `json:"select"`
			Sort   struct {
				Sorted   bool `json:"sorted"`
				Unsorted bool `json:"unsorted"`
				Empty    bool `json:"empty"`
			} `json:"sort"`
		} `json:"queryInfo"`
		PageNumber int  `json:"pageNumber"`
		PageSize   int  `json:"pageSize"`
		Paged      bool `json:"paged"`
		Unpaged    bool `json:"unpaged"`
	} `json:"pageable"`
	Last          bool `json:"last"`
	TotalPages    int  `json:"totalPages"`
	TotalElements int  `json:"totalElements"`
	Sort          struct {
		Sorted   bool `json:"sorted"`
		Unsorted bool `json:"unsorted"`
		Empty    bool `json:"empty"`
	} `json:"sort"`
	Number           int  `json:"number"`
	First            bool `json:"first"`
	NumberOfElements int  `json:"numberOfElements"`
	Size             int  `json:"size"`
	Empty            bool `json:"empty"`
}

type CodeStreamVariableRequest

type CodeStreamVariableRequest struct {
	Project     string `json:"project"`
	Kind        string `json:"kind"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
	Value       string `json:"value"`
}

CodeStreamVariableRequest - Code Stream API Variable Create Request

type CodeStreamVariableResponse

type CodeStreamVariableResponse struct {
	Project            string `json:"project"`
	Kind               string `json:"kind"`
	ID                 string `json:"id"`
	Name               string `json:"name"`
	Description        string `json:"description"`
	Version            string `json:"version"`
	CreatedBy          string `json:"createdBy"`
	CreatedAt          string `json:"createdAt"`
	UpdatedAt          string `json:"updatedAt"`
	Link               string `json:"_link"`
	UpdateTimeInMicros int64  `json:"_updateTimeInMicros"`
	CreateTimeInMicros int64  `json:"_createTimeInMicros"`
	ProjectID          string `json:"_projectId"`
	Type               string `json:"type"`
	Value              string `json:"value"`
}

CodeStreamVariableResponse - Code Stream API Variable response

type CodestreamAPIExecutions

type CodestreamAPIExecutions struct {
	Project            string        `json:"project"`
	ID                 string        `json:"id"`
	Name               string        `json:"name"`
	UpdatedAt          string        `json:"updatedAt"`
	Link               string        `json:"_link"`
	UpdateTimeInMicros int64         `json:"_updateTimeInMicros"`
	CreateTimeInMicros int64         `json:"_createTimeInMicros"`
	ProjectID          string        `json:"_projectId"`
	Index              int           `json:"index"`
	Notifications      []interface{} `json:"notifications"`
	Comments           string        `json:"comments"`
	Icon               string        `json:"icon"`
	Starred            struct {
	} `json:"starred"`
	Input                 interface{}   `json:"input"`
	Output                interface{}   `json:"output"`
	StageOrder            []interface{} `json:"stageOrder"`
	Stages                interface{}   `json:"stages"`
	Status                string        `json:"status"`
	StatusMessage         string        `json:"statusMessage"`
	DurationInMicros      int           `json:"_durationInMicros"`
	TotalDurationInMicros int           `json:"_totalDurationInMicros"`
	RequestTimeInMicros   int64         `json:"_requestTimeInMicros"`
	ExecutedBy            string        `json:"_executedBy"`
	PipelineLink          string        `json:"_pipelineLink"`
	Nested                bool          `json:"_nested"`
	Rollback              bool          `json:"_rollback"`
	InputMeta             interface{}   `json:"_inputMeta"`
	OutputMeta            interface{}   `json:"_outputMeta"`
	WorkspaceResults      []struct {
		Status string   `json:"status"`
		Step   string   `json:"step"`
		Logs   []string `json:"logs"`
	} `json:"workspaceResults"`
	Tags []string `json:"tags"`
}

CodestreamAPIExecutions - Code Stream Execution document structure

type TokenRequest

type TokenRequest struct {
	RefreshToken string `json:"refresh_token"`
}

TokenRequest - vRA Authentication request structure

type UserPreferences

type UserPreferences struct {
	Link               string      `json:"_link"`
	UpdateTimeInMicros int         `json:"_updateTimeInMicros"`
	CreateTimeInMicros int         `json:"_createTimeInMicros"`
	Preferences        interface{} `json:"preferences"`
	UserName           string      `json:"userName"`
}

UserPreferences -

Jump to

Keyboard shortcuts

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