actions

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: EPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRegistrySecret

func AddRegistrySecret(c *cli.Context)

AddRegistrySecret : Set a docker registry secret.

func AddTemplateRepo

func AddTemplateRepo(c *cli.Context)

AddTemplateRepo adds the provided template repo to PFE.

func Commands

func Commands()

Commands for the controller

func ConnectionAddToList

func ConnectionAddToList(c *cli.Context)

ConnectionAddToList : Add new connection to the connections config file and returns the ID of the added entry

func ConnectionGetByID

func ConnectionGetByID(c *cli.Context)

ConnectionGetByID : Get connection by its id

func ConnectionListAll

func ConnectionListAll(c *cli.Context)

ConnectionListAll : Fetch all connections

func ConnectionRemoveFromList

func ConnectionRemoveFromList(c *cli.Context)

ConnectionRemoveFromList : Removes a connection from the connections config file and from associated secrets from the keychain

func ConnectionResetList

func ConnectionResetList(c *cli.Context)

ConnectionResetList : Reset to a single default local connection

func ConnectionUpdate

func ConnectionUpdate(c *cli.Context)

ConnectionUpdate : Update an existing connection

func DeleteTemplateRepo

func DeleteTemplateRepo(c *cli.Context)

DeleteTemplateRepo deletes the provided template repo from PFE.

func DiagnosticsCollect added in v0.14.0

func DiagnosticsCollect(c *cli.Context)

DiagnosticsCollect to gather logs and project files to aid diagnosis of Codewind errors

func DiagnosticsRemove added in v0.14.0

func DiagnosticsRemove(c *cli.Context)

DiagnosticsRemove to remove the diagnostics directory and all its contents

func DisableTemplateRepos

func DisableTemplateRepos(c *cli.Context)

DisableTemplateRepos disables templates repo of which Codewind is aware.

func DoRemoteInstall

func DoRemoteInstall(c *cli.Context)

DoRemoteInstall : Deploy a remote PFE and support containers

func DoRemoteKeycloakRemove

func DoRemoteKeycloakRemove(c *cli.Context)

DoRemoteKeycloakRemove : Delete a remote Keycloak deployment

func DoRemoteRemove

func DoRemoteRemove(c *cli.Context)

DoRemoteRemove : Delete a remote Codewind deployment

func EnableTemplateRepos

func EnableTemplateRepos(c *cli.Context)

EnableTemplateRepos enables templates repo of which Codewind is aware.

func GetAllConnectionVersions

func GetAllConnectionVersions()

GetAllConnectionVersions : Prints the cwctl and container versions for all connections to console

func GetContainerVersions added in v0.14.0

func GetContainerVersions(connectionID string) (apiroutes.ContainerVersions, error)

GetContainerVersions : Gets the cwctl and container versions for a single connection

func GetRegistrySecrets

func GetRegistrySecrets(c *cli.Context)

GetRegistrySecrets : Retrieve docker registry secrets.

func GetSingleConnectionVersion

func GetSingleConnectionVersion(c *cli.Context)

GetSingleConnectionVersion : Prints the cwctl and container versions for a single connection to console

func GetVersions

func GetVersions(c *cli.Context)

GetVersions : Gets versions of Codewind containers

func HandleConfigError

func HandleConfigError(err *config.ConfigError)

HandleConfigError prints a Config error, in JSON format if the global flag is set and as a string if not

func HandleConnectionError

func HandleConnectionError(err *connections.ConError)

HandleConnectionError prints a Connection error, in JSON format if the global flag is set and as a string if not

func HandleDockerError

func HandleDockerError(err *docker.DockerError)

HandleDockerError prints a Docker error, in JSON format if the global flag is set and as a string if not

func HandleProjectError

func HandleProjectError(err *project.ProjectError)

HandleProjectError prints a Project error, in JSON format if the global flag is set and as a string if not

func HandleRegistryError

func HandleRegistryError(err *RegistryError)

HandleRegistryError prints a Registry error, in JSON format if the global flag is set, and as a string if not

func HandleRemInstError

func HandleRemInstError(err *remote.RemInstError)

HandleRemInstError prints a RemInst error, in JSON format if the global flag is set and as a string if not

func HandleTemplateError

func HandleTemplateError(err *TemplateError)

HandleTemplateError prints a Template error, in JSON format if the global flag is set, and as a string if not

func InstallCommand

func InstallCommand(c *cli.Context)

InstallCommand to pull images from dockerhub

func ListTemplateRepos

func ListTemplateRepos(c *cli.Context)

ListTemplateRepos lists all template repos of which Codewind is aware.

func ListTemplateStyles

func ListTemplateStyles(c *cli.Context)

ListTemplateStyles lists all template styles of which Codewind is aware.

func ListTemplates

func ListTemplates(c *cli.Context)

ListTemplates lists project templates of which Codewind is aware. Filter them by providing flags

func LogLevels

func LogLevels(c *cli.Context)

LogLevels : Optionally set then display the log level information for a Codewind PFE container

func PrintTable

func PrintTable(content []string)

PrintTable prints a formatted table into the terminal

func ProjectBind

func ProjectBind(c *cli.Context)

ProjectBind : Does a project bind

func ProjectCreate

func ProjectCreate(c *cli.Context)

ProjectCreate : Downloads template, create a new project then validate it

func ProjectGet

func ProjectGet(c *cli.Context)

ProjectGet : Prints information about a given project using its ID

func ProjectLinkCreate added in v0.14.0

func ProjectLinkCreate(c *cli.Context)

ProjectLinkCreate : creates a new link

func ProjectLinkDelete added in v0.14.0

func ProjectLinkDelete(c *cli.Context)

ProjectLinkDelete : deletes a link

func ProjectLinkList(c *cli.Context)

ProjectLinkList : lists all the links for a project

func ProjectLinkUpdate added in v0.14.0

func ProjectLinkUpdate(c *cli.Context)

ProjectLinkUpdate : updates a link

func ProjectList

func ProjectList(c *cli.Context)

ProjectList : Print the list of projects to the terminal

func ProjectRemove

func ProjectRemove(c *cli.Context)

ProjectRemove : Does a project remove

func ProjectRestart

func ProjectRestart(c *cli.Context)

ProjectRestart : restarts a project

func ProjectSync

func ProjectSync(c *cli.Context)

ProjectSync : Does a project Sync

func ProjectValidate

func ProjectValidate(c *cli.Context)

ProjectValidate : Detects the project type, and adds .cw-settings if it does not already exist

func RemoteListAll

func RemoteListAll(c *cli.Context)

RemoteListAll prints information for all remote installations in the given namespace

func RemoveCommand

func RemoveCommand(c *cli.Context, dockerComposeFile string)

RemoveCommand to remove all codewind and project images

func RemoveRegistrySecret

func RemoveRegistrySecret(c *cli.Context)

RemoveRegistrySecret : Delete a docker registry secret.

func SecurityClientCreate

func SecurityClientCreate(c *cli.Context)

SecurityClientCreate : Create a new client in Keycloak

func SecurityClientGet

func SecurityClientGet(c *cli.Context)

SecurityClientGet : Retrieve a client configuration from Keycloak

func SecurityClientGetSecret

func SecurityClientGetSecret(c *cli.Context)

SecurityClientGetSecret : Retrieve a client secret from Keycloak

func SecurityCreateRealm

func SecurityCreateRealm(c *cli.Context)

SecurityCreateRealm : Create a realm in Keycloak

func SecurityCreateRole

func SecurityCreateRole(c *cli.Context)

SecurityCreateRole : Create a role in an existing Keycloak realm

func SecurityKeyUpdate

func SecurityKeyUpdate(c *cli.Context)

SecurityKeyUpdate : Creates or updates a key in the platforms keyring

func SecurityKeyValidate

func SecurityKeyValidate(c *cli.Context)

SecurityKeyValidate : Checks the key is available in the platform keyring

func SecurityTokenGet

func SecurityTokenGet(c *cli.Context)

SecurityTokenGet : Authenticate and retrieve an access_token

func SecurityTokenRefresh

func SecurityTokenRefresh(c *cli.Context)

SecurityTokenRefresh : Refresh the access token the cached refresh token

func SecurityUserAddRole

func SecurityUserAddRole(c *cli.Context)

SecurityUserAddRole : Add an existing role to the specified user

func SecurityUserCreate

func SecurityUserCreate(c *cli.Context)

SecurityUserCreate : Create a user in a Keycloak realm

func SecurityUserGet

func SecurityUserGet(c *cli.Context)

SecurityUserGet : Retrieve the user detail from Keycloak

func SecurityUserSetPassword

func SecurityUserSetPassword(c *cli.Context)

SecurityUserSetPassword : Set a users password in Keycloak

func StartCommand

func StartCommand(c *cli.Context, dockerComposeFile string, healthEndpoint string)

StartCommand : start the codewind containers

func StatusCommand

func StatusCommand(c *cli.Context)

StatusCommand : to show the status

func StatusCommandLocalConnection

func StatusCommandLocalConnection(c *cli.Context)

StatusCommandLocalConnection : Output local connection details

func StatusCommandRemoteConnection

func StatusCommandRemoteConnection(c *cli.Context)

StatusCommandRemoteConnection : Output remote connection details

func StopAllCommand

func StopAllCommand(c *cli.Context, dockerComposeFile string)

StopAllCommand to stop codewind and project containers

func StopCommand

func StopCommand(c *cli.Context, dockerComposeFile string)

StopCommand to stop only the codewind containers

func UpgradeProjects

func UpgradeProjects(c *cli.Context)

UpgradeProjects : Upgrades projects

Types

type RegistryError

type RegistryError struct {
	Op   string
	Err  error
	Desc string
}

RegistryError struct will format the error

func (*RegistryError) Error

func (te *RegistryError) Error() string

RegistryError : Error formatted in JSON containing an errorOp and a description

type TemplateError

type TemplateError struct {
	Op   string
	Err  error
	Desc string
}

TemplateError struct will format the error

func (*TemplateError) Error

func (te *TemplateError) Error() string

TemplateError : Error formatted in JSON containing an errorOp and a description

Jump to

Keyboard shortcuts

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