circleci

package
v0.1.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CircleCI

type CircleCI struct {
	Token string
}

toprovider.Provider

func (*CircleCI) Name

func (t *CircleCI) Name() string

func (*CircleCI) UnmarshalSpec

func (t *CircleCI) UnmarshalSpec(bytes []byte) (toprovider.Operator, error)

type Context

type Context struct {
	Name      string      `yaml:"name"`
	Variables []*Variable `yaml:"variables"`
}

type ProjectVariable

type ProjectVariable struct {
	Project   string      `yaml:"project"`
	Variables []*Variable `yaml:"variables"`
}

type Spec

type Spec struct {
	Owner            string             `yaml:"owner"`
	ProjectVariables []*ProjectVariable `yaml:"projectVariables"`
	Contexts         []*Context         `yaml:"contexts"`
	Client           *circleci.Client
}

toprovider.Operator

func (*Spec) Do

func (s *Spec) Do(ctx context.Context, dryRun bool) error

Do implements toprovider.Operator interface

func (*Spec) Summary

func (s *Spec) Summary() string

func (*Spec) UpdateContexts

func (s *Spec) UpdateContexts(ctx context.Context, dryRun bool, api *circleci.Client) error

func (*Spec) UpdateProjectVariables

func (s *Spec) UpdateProjectVariables(ctx context.Context, dryRun bool, api *circleci.Client) error

type Variable

type Variable struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

Jump to

Keyboard shortcuts

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