cmdcontext

package
v1.0.0-alpha-43 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrContextNotFound error message
	ErrContextNotFound = errors.New("Context is not set")

	// ErrInvalidArgumentLength error message
	ErrInvalidArgumentLength = errors.New("Unexpected arguments length")
)

Functions

func GetProjectAndContainerID

func GetProjectAndContainerID(args []string) (projectID, containerID string, err error)

GetProjectAndContainerID gets the project and container IDs

func GetProjectID

func GetProjectID(args []string) (projectID string, err error)

GetProjectID gets the project ID

func GetProjectOrContainerID

func GetProjectOrContainerID(args []string) (projectID, containerID string, err error)

GetProjectOrContainerID gets the project or the project and container IDs

func SplitArguments

func SplitArguments(recArgs []string, offset, limit int) []string

SplitArguments splits a group of arguments (e.g., project + container)

Types

This section is empty.

Jump to

Keyboard shortcuts

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