commands

package
v0.0.0-...-864c4a6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config helpers.TLSConfig
)
View Source
var RootCmd = &cobra.Command{
	Use:   "cfdot",
	Short: "Diego operator tooling",
	Long:  "A command-line tool to interact with a Cloud Foundry Diego deployment",
}

Functions

func ActualLRPGroups

func ActualLRPGroups(stdout, stderr io.Writer, bbsClient bbs.Client, domain, cellID string) error

func ActualLRPGroupsForGuid

func ActualLRPGroupsForGuid(stdout, stderr io.Writer, bbsClient bbs.Client, processGuid string, index int) error

func ActualLRPs

func ActualLRPs(stdout, stderr io.Writer, bbsClient bbs.Client, domain, cellID, processGuid string, index *int32) error

func AddBBSAndTimeoutFlags

func AddBBSAndTimeoutFlags(cmd *cobra.Command)

func AddBBSFlags

func AddBBSFlags(cmd *cobra.Command)

func AddLocketFlags

func AddLocketFlags(cmd *cobra.Command)

func AddTLSFlags

func AddTLSFlags(cmd *cobra.Command)

func BBSPrehook

func BBSPrehook(cmd *cobra.Command, args []string) error

func CancelTaskByGuid

func CancelTaskByGuid(stdout, _ io.Writer, bbsClient bbs.Client, taskGuid string) error

func Cell

func Cell(stdout, stderr io.Writer, bbsClient bbs.Client, cellId string) error

func Cells

func Cells(stdout, stderr io.Writer, bbsClient bbs.Client) error

func ClaimLock

func ClaimLock(
	stdout, stderr io.Writer,
	locketClient models.LocketClient,
	lockKey, lockOwner, lockValue string,
	ttlInSeconds int64) error

func ClaimPresence

func ClaimPresence(
	stdout, stderr io.Writer,
	locketClient models.LocketClient,
	lockKey, lockOwner, lockValue string,
	ttlInSeconds int64) error

func CreateDesiredLRP

func CreateDesiredLRP(stdout, stderr io.Writer, bbsClient bbs.Client, spec []byte) error

func CreateTask

func CreateTask(stdout, stderr io.Writer, bbsClient bbs.Client, spec []byte) error

func DeleteDesiredLRP

func DeleteDesiredLRP(stdout, stderr io.Writer, bbsClient bbs.Client, processGuid string) error

func DeleteTask

func DeleteTask(stdout, stderr io.Writer, bbsClient bbs.Client, taskGuid string) error

func DesiredLRP

func DesiredLRP(stdout, stderr io.Writer, bbsClient bbs.Client, processGuid string) error

func DesiredLRPSchedulingInfos

func DesiredLRPSchedulingInfos(stdout, stderr io.Writer, bbsClient bbs.Client, domain string) error

func DesiredLRPs

func DesiredLRPs(stdout, stderr io.Writer, bbsClient bbs.Client, domain string) error

func Domains

func Domains(stdout, stderr io.Writer, bbsClient bbs.Client) error

func FetchCellRegistration

func FetchCellRegistration(bbsClient bbs.Client, traceID string, cellId string) (*models.CellPresence, error)

func FetchCellState

func FetchCellState(stdout, stderr io.Writer, clientFactory rep.ClientFactory, registration *models.CellPresence, traceID string) error

func FetchCellStates

func FetchCellStates(cmd *cobra.Command, stdout, stderr io.Writer, clientFactory rep.ClientFactory, bbsClient bbs.Client) error

func LRPEvents

func LRPEvents(stdout, stderr io.Writer, bbsClient bbs.Client, cellID string, excludeActualLRPGroups bool) error

func LocketPrehook

func LocketPrehook(cmd *cobra.Command, args []string) error

func Locks

func Locks(stdout, stderr io.Writer, locketClient models.LocketClient) error

func Presences

func Presences(stdout, stderr io.Writer, locketClient models.LocketClient) error

func ReleaseLock

func ReleaseLock(
	stdout, stderr io.Writer,
	locketClient models.LocketClient,
	lockKey, lockOwner string,
) error

func RetireActualLRP

func RetireActualLRP(stdout, stderr io.Writer, bbsClient bbs.Client, processGuid string, index int32) error

func SetDomain

func SetDomain(stdout, stderr io.Writer, bbsClient bbs.Client, domain string, ttlDuration time.Duration) error

func TaskByGuid

func TaskByGuid(stdout, _ io.Writer, bbsClient bbs.Client, taskGuid string) error

func TaskEvents

func TaskEvents(stdout, stderr io.Writer, bbsClient bbs.Client, cellID string) error

func Tasks

func Tasks(stdout, _ io.Writer, bbsClient bbs.Client, domain, cellID string) error

func TimeoutPrehook

func TimeoutPrehook(cmd *cobra.Command, args []string) error

func UpdateDesiredLRP

func UpdateDesiredLRP(stdout, stderr io.Writer, bbsClient bbs.Client, processGuid string, spec []byte) error

func ValidateActualLRPGroupsArguments

func ValidateActualLRPGroupsArguments(args []string) error

func ValidateActualLRPGroupsForGuidArgs

func ValidateActualLRPGroupsForGuidArgs(args []string, indexFlag string) (string, int, error)

func ValidateActualLRPsArguments

func ValidateActualLRPsArguments(args []string) error

func ValidateCancelTaskArgs

func ValidateCancelTaskArgs(args []string) (string, error)

func ValidateCellArguments

func ValidateCellArguments(args []string) error

func ValidateCellStateArguments

func ValidateCellStateArguments(args []string) error

func ValidateCellStatesArguments

func ValidateCellStatesArguments(args []string) error

func ValidateCellsArguments

func ValidateCellsArguments(args []string) error

func ValidateClaimLocksArguments

func ValidateClaimLocksArguments(cmd *cobra.Command, args []string, lockKey, lockOwner, lockValue string, ttlInSeconds int) error

func ValidateClaimPresenceArguments

func ValidateClaimPresenceArguments(cmd *cobra.Command, args []string, lockKey, lockOwner, lockValue string, ttlInSeconds int) error

func ValidateConflictingShortAndLongFlag

func ValidateConflictingShortAndLongFlag(short string, long string, cmd *cobra.Command) error

func ValidateCreateDesiredLRPArguments

func ValidateCreateDesiredLRPArguments(args []string) ([]byte, error)

func ValidateCreateTaskArguments

func ValidateCreateTaskArguments(args []string) ([]byte, error)

func ValidateDeleteDesiredLRPArguments

func ValidateDeleteDesiredLRPArguments(args []string) (string, error)

func ValidateDeleteTaskArguments

func ValidateDeleteTaskArguments(args []string) (string, error)

func ValidateDesiredLRPArguments

func ValidateDesiredLRPArguments(args []string) (string, error)

func ValidateDesiredLRPSchedulingInfosArguments

func ValidateDesiredLRPSchedulingInfosArguments(args []string) error

func ValidateDesiredLRPsArguments

func ValidateDesiredLRPsArguments(args []string) error

func ValidateDomainsArguments

func ValidateDomainsArguments(args []string) error

func ValidateLocksArguments

func ValidateLocksArguments(args []string) error

func ValidatePresencesArguments

func ValidatePresencesArguments(args []string) error

func ValidateReleaseLocksArguments

func ValidateReleaseLocksArguments(cmd *cobra.Command, args []string, lockKey, lockOwner string) error

func ValidateRetireActualLRPArgs

func ValidateRetireActualLRPArgs(args []string) (string, int, error)

func ValidateSetDomainArgs

func ValidateSetDomainArgs(args []string) (string, error)

func ValidateTaskArgs

func ValidateTaskArgs(args []string) (string, error)

func ValidateTasksArgs

func ValidateTasksArgs(args []string) error

func ValidateUpdateDesiredLRPArguments

func ValidateUpdateDesiredLRPArguments(args []string) (string, []byte, error)

Types

type CFDotError

type CFDotError struct {
	// contains filtered or unexported fields
}

func NewCFDotComponentError

func NewCFDotComponentError(cmd *cobra.Command, err error) CFDotError

func NewCFDotError

func NewCFDotError(cmd *cobra.Command, err error) CFDotError

func NewCFDotValidationError

func NewCFDotValidationError(cmd *cobra.Command, err error) CFDotError

func (CFDotError) Error

func (a CFDotError) Error() string

func (CFDotError) ExitCode

func (a CFDotError) ExitCode() int

type LRPEvent

type LRPEvent struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type TaskEvent

type TaskEvent struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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