tfe

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	Name      string `yaml:"name" validate:"required"`
	Value     string `yaml:"value" validate:"required"`
	Category  string `yaml:"category"`
	Sensitive bool   `yaml:"sensitive"`
}

type Spec

type Spec struct {
	Organization string `yaml:"organization" validate:"required"`
	Workspace    string `yaml:"workspace" validate:"required"`
	Secrets      []Secret
	Client       *tfe.Client
	RateLimit    ratelimit.Limiter
}

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

type Tfe

type Tfe struct {
	Token     string
	RateLimit ratelimit.Limiter
}

toprovider.Provider

func (*Tfe) Name

func (t *Tfe) Name() string

func (*Tfe) UnmarshalSpec

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

Jump to

Keyboard shortcuts

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