# Packages
No description provided by the author
# Functions
Build component from BuildConfig.
CreateFromGit inputPorts is the array containing the string port values inputPorts is the array containing the string port values envVars is the array containing the environment variables.
CreateFromPath create new component with source or binary from the given local path sourceType indicates the source type of the component and can be either local or binary envVars is the array containing the environment variables.
Delete whole component.
Exists checks whether a component with the given name exists in the current application or not componentName is the component name to perform check for The first returned parameter is a bool indicating if a component with the given name already exists or not The second returned parameter is the error that might occurs while execution.
GetComponent provides component definition.
GetComponentDir returns source repo name Parameters: path: git url or source path or binary path paramType: One of CreateType as in GIT/LOCAL/BINARY Returns: directory name.
GetComponentLinkedSecretNames provides a slice containing the names of the secrets that are present in envFrom.
GetComponentPorts provides slice of ports used by the component in the form port_no/protocol.
GetComponentSource what source type given component uses The first returned string is component source type ("git" or "local" or "binary") The second returned string is a source (url to git repository or local path or path to binary) we retrieve the source type by looking up the DeploymentConfig that's deployed.
GetComponentType returns type of component in given application and project.
GetCurrent component in active application returns "" if there is no active component.
GetDefaultComponentName generates a unique component name Parameters: desired default component name(w/o prefix) and slice of existing component names Returns: Unique component name and error if any.
GetLogs follow the DeploymentConfig logs if follow is set to true.
List lists components in active application.
PushLocal push local code to the cluster and trigger build there.
SetCurrent sets the given componentName as active component.
Update updates the requested component componentName is the name of the component to be updated applicationName is the name of the application of the component newSourceType indicates the type of the new source i.e git/local/binary newSource indicates path of the source directory or binary or the git URL stdout is the io writer for streaming build logs on stdout.
WatchAndPush watches path, if something changes in that path it calls PushLocal ignores .git/* by default inspired by https://github.com/openshift/origin/blob/e785f76194c57bd0e1674c2f2776333e1e0e4e78/pkg/oc/cli/cmd/rsync/rsync.go#L257 Parameters: client: occlient instance out: io Writer instance parameters: WatchParameters.
# Constants
No description provided by the author
# Variables
ErrUserRequestedWatchExit is returned when the user stops the watch loop.
# Structs
Component.
ComponentList is list of components.
ComponentSpec is spec of components.
ComponentStatus is Status of components.
WatchParameters is designed to hold the controllables and attributes that the watch function works on.