provider

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvChainguardConsoleAPI = "CHAINGUARD_CONSOLE_API"
	DefaultConsoleAPI       = "https://console-api.enforce.dev"

	EnvChainguardAudience = "CHAINGUARD_AUDIENCE"

	EnvAccAudience   = "TF_ACC_AUDIENCE"
	EnvAccConsoleAPI = "TF_ACC_CONSOLE_API"
	EnvAccGroupID    = "TF_ACC_GROUP_ID"
	EnvAccIssuer     = "TF_ACC_ISSUER"

	// EnvAccAmbient signals acceptance tests are being executed by GHA with ambient credentials.
	EnvAccAmbient = "TF_ACC_AMBIENT"
)

Variables

View Source
var (
	UserAgent = "terraform-provider-chainguard"
)

Functions

func New

func New(version string) func() provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewAccountAssociationsResource

func NewAccountAssociationsResource() resource.Resource

NewAccountAssociationsResource is a helper function to simplify the provider implementation.

func NewClusterCIDRDataSource

func NewClusterCIDRDataSource() datasource.DataSource

NewClusterCIDRDataSource is a helper function to simplify the provider implementation.

func NewGroupDataSource

func NewGroupDataSource() datasource.DataSource

NewGroupDataSource is a helper function to simplify the provider implementation.

func NewGroupInviteResource

func NewGroupInviteResource() resource.Resource

NewGroupInviteResource is a helper function to simplify the provider implementation.

func NewGroupResource

func NewGroupResource() resource.Resource

NewGroupResource is a helper function to simplify the provider implementation.

func NewIdentityDataSource

func NewIdentityDataSource() datasource.DataSource

NewIdentityDataSource is a helper function to simplify the provider implementation.

func NewIdentityProviderResource

func NewIdentityProviderResource() resource.Resource

NewIdentityProviderResource is a helper function to simplify the provider implementation.

func NewIdentityResource

func NewIdentityResource() resource.Resource

NewIdentityResource is a helper function to simplify the provider implementation.

func NewImageRepoResource

func NewImageRepoResource() resource.Resource

NewImageRepoResource is a helper function to simplify the provider implementation.

func NewImageTagResource

func NewImageTagResource() resource.Resource

NewImageTagResource is a helper function to simplify the provider implementation.

func NewRoleDataSource

func NewRoleDataSource() datasource.DataSource

NewRoleDataSource is a helper function to simplify the provider implementation.

func NewRoleResource

func NewRoleResource() resource.Resource

NewRoleResource is a helper function to simplify the provider implementation.

func NewRolebindingResource

func NewRolebindingResource() resource.Resource

NewRolebindingResource is a helper function to simplify the provider implementation.

func NewSubscriptionResource

func NewSubscriptionResource() resource.Resource

NewSubscriptionResource is a helper function to simplify the provider implementation.

Types

type LoginOptionsModel added in v0.1.2

type LoginOptionsModel struct {
	Disabled            types.Bool   `tfsdk:"disabled"`
	Identity            types.String `tfsdk:"identity_id"`
	IdentityToken       types.String `tfsdk:"identity_token"`
	IdentityProvider    types.String `tfsdk:"identity_provider_id"`
	Auth0Connection     types.String `tfsdk:"auth0_connection"`
	OrgName             types.String `tfsdk:"organization_name"`
	EnableRefreshTokens types.Bool   `tfsdk:"enable_refresh_tokens"`
}

type Provider

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

Provider is the provider implementation.

func (*Provider) Configure

Configure prepares a Chainguard API client for data sources and resources.

func (*Provider) DataSources

func (p *Provider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources defines the data sources implemented in the provider.

func (*Provider) Metadata

Metadata returns the provider type name.

func (*Provider) Resources

func (p *Provider) Resources(_ context.Context) []func() resource.Resource

Resources defines the resources implemented in the provider.

func (*Provider) Schema

Schema defines the provider-level schema for configuration data.

type ProviderModel

type ProviderModel struct {
	ConsoleAPI   types.String `tfsdk:"console_api"`
	LoginOptions types.Object `tfsdk:"login_options"`
}

Jump to

Keyboard shortcuts

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