Documentation ¶
Index ¶
- Constants
- Variables
- func New(version string) func() provider.Provider
- func NewAccountAssociationsResource() resource.Resource
- func NewClusterCIDRDataSource() datasource.DataSource
- func NewGroupDataSource() datasource.DataSource
- func NewGroupInviteResource() resource.Resource
- func NewGroupResource() resource.Resource
- func NewIdentityDataSource() datasource.DataSource
- func NewIdentityProviderResource() resource.Resource
- func NewIdentityResource() resource.Resource
- func NewImageRepoResource() resource.Resource
- func NewImageTagResource() resource.Resource
- func NewRoleDataSource() datasource.DataSource
- func NewRoleResource() resource.Resource
- func NewRolebindingResource() resource.Resource
- func NewSubscriptionResource() resource.Resource
- type LoginOptionsModel
- type Provider
- func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *Provider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *Provider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *Provider) Resources(_ context.Context) []func() resource.Resource
- func (p *Provider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type ProviderModel
Constants ¶
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 ¶
var EnvAccVars = []string{ EnvAccAudience, EnvAccConsoleAPI, EnvAccGroupID, EnvAccIssuer, }
var (
UserAgent = "terraform-provider-chainguard"
)
Functions ¶
func NewAccountAssociationsResource ¶
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 ¶
NewGroupInviteResource is a helper function to simplify the provider implementation.
func NewGroupResource ¶
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 ¶
NewIdentityProviderResource is a helper function to simplify the provider implementation.
func NewIdentityResource ¶
NewIdentityResource is a helper function to simplify the provider implementation.
func NewImageRepoResource ¶
NewImageRepoResource is a helper function to simplify the provider implementation.
func NewImageTagResource ¶
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 ¶
NewRoleResource is a helper function to simplify the provider implementation.
func NewRolebindingResource ¶
NewRolebindingResource is a helper function to simplify the provider implementation.
func NewSubscriptionResource ¶
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 ¶
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
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 ¶
func (p *Provider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata returns the provider type name.
func (*Provider) Schema ¶
func (p *Provider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Schema defines the provider-level schema for configuration data.
Source Files ¶
- data_source_cluster_cidr.go
- data_source_common.go
- data_source_group.go
- data_source_identity.go
- data_source_role.go
- provider.go
- resource_account_associations.go
- resource_common.go
- resource_group.go
- resource_group_invite.go
- resource_identity.go
- resource_identity_provider.go
- resource_image_repo.go
- resource_image_tag.go
- resource_role.go
- resource_rolebinding.go
- resource_subscription.go