circleci

package
v0.0.0-...-e10b5f9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type ProviderClient

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

ProviderClient is a thin commodity wrapper on top of circleciapi

func NewConfig

func NewConfig(token, vscType, organization string) *ProviderClient

NewConfig initialize circleci API client and returns a new config object

func (*ProviderClient) AddEnvVar

func (pv *ProviderClient) AddEnvVar(projectName, envVarName, envVarValue string) (*circleciapi.EnvVar, error)

AddEnvVar create an environment variable with given name and value

func (*ProviderClient) AddSSHKey

func (pv *ProviderClient) AddSSHKey(projectName, hostname, privateKey string) error

AddSSHKey adds an ssh private key to the project

func (*ProviderClient) DeleteEnvVar

func (pv *ProviderClient) DeleteEnvVar(projectName, envVarName string) error

DeleteEnvVar delete the environment variable with given name

func (*ProviderClient) DeleteSSHKey

func (pv *ProviderClient) DeleteSSHKey(projectName, hostname, fingerprint string) error

DeleteSSHKey deletes an ssh private key from the project

func (*ProviderClient) DisableProject

func (pv *ProviderClient) DisableProject(projectName string) error

DisableProject disables the project with given name

func (*ProviderClient) EnableProject

func (pv *ProviderClient) EnableProject(projectName string) error

EnableProject enables the project with given name

func (*ProviderClient) EnvVarExists

func (pv *ProviderClient) EnvVarExists(projectName, envVarName string) (bool, error)

EnvVarExists check if environment variable exists with given name

func (*ProviderClient) FollowProject

func (pv *ProviderClient) FollowProject(projectName string) (*circleciapi.Project, error)

FollowProject follows the project with given name

func (*ProviderClient) GetEnvVar

func (pv *ProviderClient) GetEnvVar(projectName, envVarName string) (*circleciapi.EnvVar, error)

GetEnvVar get the environment variable with given name It returns an empty structure if no environment variable exists with that name

func (*ProviderClient) GetProject

func (pv *ProviderClient) GetProject(projectName string) (*circleciapi.Project, error)

GetProject reads the project with given name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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