util

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockerConnector

func CreateDockerConnector(org, id string, args ...interface{}) *harness.Connector

CreateDockerConnector helper function to create a docker connector

func CreateGithubConnector

func CreateGithubConnector(org, id, username, token string) *harness.Connector

CreateGithubConnector helper function to create a github connector

func CreateGitlabConnector

func CreateGitlabConnector(org, id, username, token string) *harness.Connector

CreateGitlabConnector helper function to create a GitHub connector

func CreateSecret

func CreateSecret(org, project, identifier, desc, data string) *harness.Secret

func CreateSecretOrg

func CreateSecretOrg(org, identifier, data string) *harness.Secret

CreateSecretOrg helper function to create an org secret.

func IsErrConflict

func IsErrConflict(err error) bool

IsErrConflict helper function return true if the error message indicate the resource already exists.

Types

type DockerConnectorOptions

type DockerConnectorOptions struct {
	Username string
	Password string
	URL      string
}

Jump to

Keyboard shortcuts

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