scalr

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndpointByName

func GetEndpointByName(ctx context.Context, options GetEndpointByNameOptions, scalrClient *scalr.Client) (*scalr.Endpoint, error)

func GetEnvironmentByName

func GetEnvironmentByName(ctx context.Context, options GetEnvironmentByNameOptions, scalrClient *scalr.Client) (*scalr.Environment, error)

func GetRandomInteger

func GetRandomInteger() int

func GetWebhookByName

func GetWebhookByName(ctx context.Context, options GetWebhookByNameOptions, scalrClient *scalr.Client) (*scalr.WebhookIntegration, error)

func InterfaceArrToTagRelationArr

func InterfaceArrToTagRelationArr(arr []interface{}) []*scalr.TagRelation

func Provider

func Provider() *schema.Provider

Provider returns a terraform.ResourceProvider.

func ValidateIDsDefinitions

func ValidateIDsDefinitions(d []interface{}) error

Types

type Config

type Config struct {
	Hosts       map[string]*ConfigHost            `hcl:"host"`
	Credentials map[string]map[string]interface{} `hcl:"credentials"`
}

Config is the structure of the configuration for the Terraform CLI.

type ConfigHost

type ConfigHost struct {
	Services map[string]interface{} `hcl:"services"`
}

ConfigHost is the structure of the "host" nested block within the CLI configuration, which can be used to override the default service host discovery behavior for a particular hostname.

type GetEndpointByNameOptions

type GetEndpointByNameOptions struct {
	Name    *string
	Account *string
}

type GetEnvironmentByNameOptions

type GetEnvironmentByNameOptions struct {
	Name    *string
	Account *string
	Include *string
}

type GetWebhookByNameOptions

type GetWebhookByNameOptions struct {
	Name    *string
	Account *string
}

type Scope

type Scope string
const (
	Workspace   Scope = "workspace"
	Environment Scope = "environment"
	Account     Scope = "account"
)

func (Scope) IsValid

func (s Scope) IsValid() error

type Subject

type Subject string
const (
	User           Subject = "user"
	Team           Subject = "team"
	ServiceAccount Subject = "service_account"
)

func (Subject) IsValid

func (s Subject) IsValid() error

Source Files

Jump to

Keyboard shortcuts

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