provisioner

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

func NewResource

func NewResource() resource.Resource

Types

type ACMEAttestationModel

type ACMEAttestationModel struct {
	AttestationFormats types.Set  `tfsdk:"attestation_formats"`
	AttestationRoots   types.Set  `tfsdk:"attestation_roots"`
	ForceCN            types.Bool `tfsdk:"force_cn"`
	RequireEAB         types.Bool `tfsdk:"require_eab"`
}

type ACMEModel

type ACMEModel struct {
	Challenges types.Set  `tfsdk:"challenges"`
	ForceCN    types.Bool `tfsdk:"force_cn"`
	RequireEAB types.Bool `tfsdk:"require_eab"`
}

type AWSModel

type AWSModel struct {
	Accounts               types.Set    `tfsdk:"accounts"`
	DisableCustomSANs      types.Bool   `tfsdk:"disable_custom_sans"`
	DisableTrustOnFirstUse types.Bool   `tfsdk:"disable_trust_on_first_use"`
	InstanceAge            types.String `tfsdk:"instance_age"`
}

type AzureModel

type AzureModel struct {
	TenantID               types.String `tfsdk:"tenant_id"`
	ResourceGroups         types.Set    `tfsdk:"resource_groups"`
	Audience               types.String `tfsdk:"audience"`
	DisableCustomSANs      types.Bool   `tfsdk:"disable_custom_sans"`
	DisableTrustOnFirstUse types.Bool   `tfsdk:"disable_trust_on_first_use"`
}

type ClaimsModel

type ClaimsModel struct {
	DisableRenewal             types.Bool   `tfsdk:"disable_renewal"`
	AllowRenewalAfterExpiry    types.Bool   `tfsdk:"allow_renewal_after_expiry"`
	EnableSSHCA                types.Bool   `tfsdk:"enable_ssh_ca"`
	MinTLSCertDuration         types.String `tfsdk:"min_tls_cert_duration"`
	MaxTLSCertDuration         types.String `tfsdk:"max_tls_cert_duration"`
	DefaultTLSCertDuration     types.String `tfsdk:"default_tls_cert_duration"`
	MinUserSSHCertDuration     types.String `tfsdk:"min_user_ssh_cert_duration"`
	MaxUserSSHCertDuration     types.String `tfsdk:"max_user_ssh_cert_duration"`
	DefaultUserSSHCertDuration types.String `tfsdk:"default_user_ssh_cert_duration"`
	MinHostSSHCertDuration     types.String `tfsdk:"min_host_ssh_cert_duration"`
	MaxHostSSHCertDuration     types.String `tfsdk:"max_host_ssh_cert_duration"`
	DefaultHostSSHCertDuration types.String `tfsdk:"default_host_ssh_cert_duration"`
}

type DataSource

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

DataSource implements data.smallstep_provisioner

func (*DataSource) Configure

Configure adds the Smallstep API client to the data source.

func (*DataSource) Metadata

func (*DataSource) Read

func (*DataSource) Schema

type GCPModel

type GCPModel struct {
	ProjectIDs             types.Set    `tfsdk:"project_ids"`
	ServiceAccounts        types.Set    `tfsdk:"service_accounts"`
	DisableCustomSANs      types.Bool   `tfsdk:"disable_custom_sans"`
	DisableTrustOnFirstUse types.Bool   `tfsdk:"disable_trust_on_first_use"`
	InstanceAge            types.String `tfsdk:"instance_age"`
}

type JWKModel

type JWKModel struct {
	Key          types.String `tfsdk:"key"`
	EncryptedKey types.String `tfsdk:"encrypted_key"`
}

type Model

type Model struct {
	ID              types.String          `tfsdk:"id"`
	AuthorityID     types.String          `tfsdk:"authority_id"`
	Name            types.String          `tfsdk:"name"`
	Type            types.String          `tfsdk:"type"`
	CreatedAt       types.String          `tfsdk:"created_at"`
	Claims          *ClaimsModel          `tfsdk:"claims"`
	Options         *OptionsModel         `tfsdk:"options"`
	JWK             *JWKModel             `tfsdk:"jwk"`
	OIDC            *OIDCModel            `tfsdk:"oidc"`
	ACME            *ACMEModel            `tfsdk:"acme"`
	ACMEAttestation *ACMEAttestationModel `tfsdk:"acme_attestation"`
	X5C             *X5CModel             `tfsdk:"x5c"`
	AWS             *AWSModel             `tfsdk:"aws"`
	GCP             *GCPModel             `tfsdk:"gcp"`
	Azure           *AzureModel           `tfsdk:"azure"`
}

type OIDCModel

type OIDCModel struct {
	ClientID              types.String `tfsdk:"client_id"`
	ClientSecret          types.String `tfsdk:"client_secret"`
	ConfigurationEndpoint types.String `tfsdk:"configuration_endpoint"`
	Admins                types.Set    `tfsdk:"admins"`
	Domains               types.Set    `tfsdk:"domains"`
	Groups                types.Set    `tfsdk:"groups"`
	ListenAddress         types.String `tfsdk:"listen_address"`
	TenantID              types.String `tfsdk:"tenant_id"`
}

type OptionsModel

type OptionsModel struct {
	X509 *TemplateModel `tfsdk:"x509"`
	SSH  *TemplateModel `tfsdk:"ssh"`
}

type Resource

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

Resource defines the provisioner resource implementation.

func (*Resource) Configure

func (*Resource) Create

func (*Resource) Delete

func (*Resource) ImportState

func (*Resource) Metadata

func (*Resource) Read

func (*Resource) Schema

func (*Resource) Update

type TemplateModel

type TemplateModel struct {
	Template     types.String `tfsdk:"template"`
	TemplateData types.String `tfsdk:"template_data"`
}

type X5CModel

type X5CModel struct {
	Roots types.Set `tfsdk:"roots"`
}

Jump to

Keyboard shortcuts

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