Documentation ¶
Index ¶
- func NewDataSource() datasource.DataSource
- func NewResource() resource.Resource
- type ACMEAttestationModel
- type ACMEModel
- type AWSModel
- type AzureModel
- type ClaimsModel
- type DataSource
- func (a *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (a *DataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (a *DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type GCPModel
- type JWKModel
- type Model
- type OIDCModel
- type OptionsModel
- type Resource
- func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (a *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (a *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (a *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TemplateModel
- type X5CModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
func NewResource ¶
Types ¶
type ACMEAttestationModel ¶
type AzureModel ¶
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 ¶
func (a *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the Smallstep API client to the data source.
func (*DataSource) Metadata ¶
func (a *DataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DataSource) Read ¶
func (a *DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DataSource) Schema ¶
func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*Resource) Create ¶
func (a *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*Resource) Delete ¶
func (a *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*Resource) ImportState ¶
func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*Resource) Metadata ¶
func (r *Resource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*Resource) Read ¶
func (a *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*Resource) Schema ¶
func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*Resource) Update ¶
func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type TemplateModel ¶
Click to show internal directories.
Click to hide internal directories.