Documentation
¶
Index ¶
- func Provider() *schema.Provider
- type APIError
- type ApiClient
- func (c *ApiClient) AddEnvVar(vcstype, account, reponame, name, value string) (*EnvVar, error)
- func (c *ApiClient) DeleteEnvVar(vcstype, account, reponame, name string) error
- func (c *ApiClient) DisableProject(vcstype, account, reponame string) error
- func (c *ApiClient) FollowProject(vcstype, account, reponame string) (*Project, error)
- func (c *ApiClient) GetProject(vcstype, account, reponame string) (*Project, error)
- func (c *ApiClient) ListEnvVars(vcstype, account, reponame string) ([]EnvVar, error)
- func (c *ApiClient) ListProjects() ([]*Project, error)
- type EnvVar
- type Logger
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiClient ¶
type ApiClient struct { BaseURL *url.URL // CircleCI API endpoint (defaults to DefaultEndpoint) Token string // CircleCI API token (needed for private repositories and mutative actions) HTTPClient *http.Client // HTTPClient to use for connecting to CircleCI (defaults to http.DefaultClient) Debug bool // debug logging enabled Logger Logger // logger to send debug messages on (if enabled), defaults to logging to stderr with the standard flags }
func (*ApiClient) AddEnvVar ¶
AddEnvVar adds a new environment variable to the specified project Returns the added env var (the value will be masked)
func (*ApiClient) DeleteEnvVar ¶
DeleteEnvVar deletes the specified environment variable from the project
func (*ApiClient) DisableProject ¶
DisableProject disables a project
func (*ApiClient) FollowProject ¶
FollowProject follows a project
func (*ApiClient) GetProject ¶
GetProject retrieves a specific project Returns nil of the project is not in the list of watched projects
func (*ApiClient) ListEnvVars ¶
ListEnvVars list environment variable to the specified project Returns the env vars (the value will be masked)
func (*ApiClient) ListProjects ¶
ListProjects returns the list of projects the user is watching
Click to show internal directories.
Click to hide internal directories.