provider

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func NewAppClientResource added in v0.2.0

func NewAppClientResource() resource.Resource

func NewArtifactVersionDataSource added in v0.2.0

func NewArtifactVersionDataSource() datasource.DataSource

func NewCognitoInfoDataSource added in v0.2.0

func NewCognitoInfoDataSource() datasource.DataSource

func NewDeploymentAccountResource added in v0.3.0

func NewDeploymentAccountResource() resource.Resource

func NewEnvironmentAccountResource added in v0.3.0

func NewEnvironmentAccountResource() resource.Resource

func NewResourceServerResource added in v0.2.0

func NewResourceServerResource() resource.Resource

Types

type AppClientResource added in v0.2.0

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

func (*AppClientResource) Configure added in v0.2.0

func (AppClientResource) Create added in v0.2.0

func (AppClientResource) Delete added in v0.2.0

func (AppClientResource) ImportState added in v0.2.0

ImportState imports an existing app client into the state. If it doesn't find a app client in the system, it will try to import from old delegated cognito.

Because the new system uses names as its primary key, it is dual function. To import an existing app client, use the name of the app client. To import from the old system, the `client_id` must be used.

func (*AppClientResource) Metadata added in v0.2.0

func (r *AppClientResource) Metadata(ctx context.Context, request resource.MetadataRequest, response *resource.MetadataResponse)

func (AppClientResource) Read added in v0.2.0

func (*AppClientResource) Schema added in v0.2.0

func (r *AppClientResource) Schema(ctx context.Context, request resource.SchemaRequest, response *resource.SchemaResponse)

func (AppClientResource) Update added in v0.2.0

type AppClientResourceModel added in v0.2.0

type AppClientResourceModel struct {
	Id             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	Scopes         []string     `tfsdk:"scopes"`
	Type           types.String `tfsdk:"type"`
	CallbackUrls   []string     `tfsdk:"callback_urls"`
	LogoutUrls     []string     `tfsdk:"logout_urls"`
	GenerateSecret types.Bool   `tfsdk:"generate_secret"`
	ClientId       types.String `tfsdk:"client_id"`
	ClientSecret   types.String `tfsdk:"client_secret"`
}

type ArtifactVersionDataSource added in v0.2.0

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

func (*ArtifactVersionDataSource) Configure added in v0.2.0

func (ArtifactVersionDataSource) Metadata added in v0.2.0

func (ArtifactVersionDataSource) Read added in v0.2.0

func (ArtifactVersionDataSource) Schema added in v0.2.0

type ArtifactVersionDataSourceModel added in v0.2.0

type ArtifactVersionDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Application types.String `tfsdk:"application"`
	URI         types.String `tfsdk:"uri"`
	Store       types.String `tfsdk:"store"`
	Path        types.String `tfsdk:"path"`
	Version     types.String `tfsdk:"version"`
}

type CognitoInfoDataSource added in v0.2.0

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

func (*CognitoInfoDataSource) Configure added in v0.2.0

func (*CognitoInfoDataSource) Metadata added in v0.2.0

func (*CognitoInfoDataSource) Read added in v0.2.0

func (*CognitoInfoDataSource) Schema added in v0.2.0

type CognitoInfoDataSourceModel added in v0.2.0

type CognitoInfoDataSourceModel struct {
	Id        types.String `tfsdk:"id"`
	AuthUrl   types.String `tfsdk:"auth_url"`
	JwksUrl   types.String `tfsdk:"jwks_url"`
	OpenIdUrl types.String `tfsdk:"open_id_url"`
	Issuer    types.String `tfsdk:"issuer"`
}

type DeploymentAccountResource added in v0.3.0

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

func (*DeploymentAccountResource) Configure added in v0.3.0

func (DeploymentAccountResource) Create added in v0.3.0

func (DeploymentAccountResource) Delete added in v0.3.0

func (DeploymentAccountResource) Metadata added in v0.3.0

func (DeploymentAccountResource) Read added in v0.3.0

func (DeploymentAccountResource) Schema added in v0.3.0

func (DeploymentAccountResource) Update added in v0.3.0

type DeploymentAccountResourceModel added in v0.3.0

type DeploymentAccountResourceModel struct {
	Id           types.String `tfsdk:"id"`
	SlackChannel types.String `tfsdk:"slack_channel"`
}

type EnvironmentAccountResource added in v0.3.0

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

func (*EnvironmentAccountResource) Configure added in v0.3.0

func (EnvironmentAccountResource) Create added in v0.3.0

func (EnvironmentAccountResource) Delete added in v0.3.0

func (EnvironmentAccountResource) Metadata added in v0.3.0

func (EnvironmentAccountResource) Read added in v0.3.0

func (EnvironmentAccountResource) Schema added in v0.3.0

func (EnvironmentAccountResource) Update added in v0.3.0

type EnvironmentAccountResourceModel added in v0.3.0

type EnvironmentAccountResourceModel struct {
	Id             types.String `tfsdk:"id"`
	OwnerAccountId types.String `tfsdk:"owner_account_id"`
}

type ResourceServerResource added in v0.2.0

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

func (*ResourceServerResource) Configure added in v0.2.0

func (ResourceServerResource) Create added in v0.2.0

func (ResourceServerResource) Delete added in v0.2.0

func (ResourceServerResource) ImportState added in v0.2.0

ImportState imports an existing resource into state. It will try to import the resource server from the old delegated cognito if not found.

func (ResourceServerResource) Metadata added in v0.2.0

func (ResourceServerResource) Read added in v0.2.0

func (ResourceServerResource) Schema added in v0.2.0

func (ResourceServerResource) Update added in v0.2.0

type ResourceServerResourceModel added in v0.2.0

type ResourceServerResourceModel struct {
	Id         types.String `tfsdk:"id"`
	Identifier types.String `tfsdk:"identifier"`
	Name       types.String `tfsdk:"name"`
	Scopes     []scope      `tfsdk:"scopes"`
}

type VyProvider added in v0.2.0

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

VyProvider satisfies the tfsdk.Provider interface and usually is included with all Resource and DataSource implementations.

func (VyProvider) Configure added in v0.2.0

func (p VyProvider) Configure(ctx context.Context, request provider.ConfigureRequest, response *provider.ConfigureResponse)

func (VyProvider) DataSources added in v0.2.0

func (p VyProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (VyProvider) Metadata added in v0.2.0

func (p VyProvider) Metadata(ctx context.Context, request provider.MetadataRequest, response *provider.MetadataResponse)

func (VyProvider) Resources added in v0.2.0

func (p VyProvider) Resources(ctx context.Context) []func() resource.Resource

func (VyProvider) Schema added in v0.2.0

func (p VyProvider) Schema(ctx context.Context, request provider.SchemaRequest, response *provider.SchemaResponse)

type VyProviderConfiguration added in v0.2.0

type VyProviderConfiguration struct {
	Environment          string
	CognitoClient        *central_cognito.Client
	EnrollAccountClient  *enroll_account.Client
	VersionHandlerClient *version_handler.Client
}

type VyProviderModel added in v0.2.0

type VyProviderModel struct {
	CentralCognitoBaseUrl        types.String `tfsdk:"central_cognito_base_url"`
	EnrollAccountBaseUrl         types.String `tfsdk:"enroll_account_base_url"`
	Environment                  types.String `tfsdk:"environment"`
	DeploymentServiceEnvironment types.String `tfsdk:"deployment_service_environment"`
}

VyProviderModel can be used to store data from the Terraform configuration.

Jump to

Keyboard shortcuts

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