Documentation ¶
Index ¶
- Constants
- Variables
- func ExpandKerberosKey(ctx context.Context, o types.Object, diags *diag.Diagnostics) *keys.KerberosKey
- func ExpandKeysTSIGKey(ctx context.Context, o types.Object, diags *diag.Diagnostics) *keys.TSIGKey
- func FlattenKerberosKey(ctx context.Context, from *keys.KerberosKey, diags *diag.Diagnostics) types.Object
- func FlattenKeysTSIGKey(ctx context.Context, from *keys.TSIGKey, diags *diag.Diagnostics) types.Object
- func NewKerberosDataSource() datasource.DataSource
- func NewTsigDataSource() datasource.DataSource
- func NewTsigResource() resource.Resource
- type KerberosDataSource
- func (d *KerberosDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *KerberosDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *KerberosDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *KerberosDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type KerberosKeyModel
- type KerberosKeyModelWithFilter
- type KeysTSIGKeyModel
- type KeysTSIGKeyModelWithFilter
- type TsigDataSource
- func (d *TsigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *TsigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *TsigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *TsigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type TsigResource
- func (r *TsigResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TsigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TsigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TsigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TsigResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TsigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TsigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TsigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
View Source
const ( // TsigKeyOperationTimeout is the maximum amount of time to wait for eventual consistency TsigKeyOperationTimeout = 2 * time.Minute )
Variables ¶
View Source
var KerberosKeyAttrTypes = map[string]attr.Type{ "algorithm": types.StringType, "comment": types.StringType, "domain": types.StringType, "id": types.StringType, "principal": types.StringType, "tags": types.MapType{ElemType: types.StringType}, "uploaded_at": types.StringType, "version": types.Int64Type, }
View Source
var KerberosKeyResourceSchemaAttributes = map[string]schema.Attribute{ "algorithm": schema.StringAttribute{ Computed: true, MarkdownDescription: "Encryption algorithm of the key in accordance with RFC 3961.", }, "comment": schema.StringAttribute{ Optional: true, MarkdownDescription: "The description for Kerberos key. May contain 0 to 1024 characters. Can include UTF-8.", }, "domain": schema.StringAttribute{ Computed: true, MarkdownDescription: "Kerberos realm of the principal.", }, "id": schema.StringAttribute{ Computed: true, MarkdownDescription: "The resource identifier.", PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, }, "principal": schema.StringAttribute{ Computed: true, MarkdownDescription: "Kerberos principal associated with key.", }, "tags": schema.MapAttribute{ ElementType: types.StringType, Optional: true, Computed: true, Default: mapdefault.StaticValue(types.MapNull(types.StringType)), MarkdownDescription: "The tags for the Kerberos key in JSON format.", }, "uploaded_at": schema.StringAttribute{ Computed: true, MarkdownDescription: "Upload time for the key.", }, "version": schema.Int64Attribute{ Computed: true, MarkdownDescription: "The version number (KVNO) of the key.", }, }
View Source
var KeysTSIGKeyAttrTypes = map[string]attr.Type{ "algorithm": types.StringType, "comment": types.StringType, "created_at": timetypes.RFC3339Type{}, "id": types.StringType, "name": types.StringType, "protocol_name": types.StringType, "secret": types.StringType, "tags": types.MapType{ElemType: types.StringType}, "updated_at": timetypes.RFC3339Type{}, }
View Source
var KeysTSIGKeyResourceSchemaAttributes = map[string]schema.Attribute{ "algorithm": schema.StringAttribute{ Optional: true, Computed: true, Default: stringdefault.StaticString("hmac_sha256"), MarkdownDescription: "TSIG key algorithm.\n\n" + " Valid values are:\n" + " * _hmac_sha1_\n" + " * _hmac_sha224_\n" + " * _hmac_sha256_\n" + " * _hmac_sha384_\n" + " * _hmac_sha512_\n\n" + " Defaults to _hmac_sha256_.", Validators: []validator.String{ stringvalidator.OneOf("hmac_sha1", "hmac_sha224", "hmac_sha256", "hmac_sha384", "hmac_sha512"), }, }, "comment": schema.StringAttribute{ Optional: true, Computed: true, Default: stringdefault.StaticString(""), MarkdownDescription: "The description for the TSIG key. May contain 0 to 1024 characters. Can include UTF-8.", }, "created_at": schema.StringAttribute{ CustomType: timetypes.RFC3339Type{}, Computed: true, MarkdownDescription: "Time when the object has been created.", }, "id": schema.StringAttribute{ Computed: true, MarkdownDescription: "The resource identifier.", PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, }, "name": schema.StringAttribute{ Required: true, MarkdownDescription: "The TSIG key name in the absolute domain name format.", }, "protocol_name": schema.StringAttribute{ Computed: true, MarkdownDescription: "The TSIG key name supplied during a create/update operation that is converted to canonical form in punycode.", }, "secret": schema.StringAttribute{ Optional: true, Computed: true, Sensitive: true, MarkdownDescription: "The TSIG key secret as a Base64 encoded string.", }, "tags": schema.MapAttribute{ ElementType: types.StringType, Optional: true, Computed: true, Default: mapdefault.StaticValue(types.MapNull(types.StringType)), MarkdownDescription: "The tags for the TSIG key in JSON format.", }, "updated_at": schema.StringAttribute{ CustomType: timetypes.RFC3339Type{}, Computed: true, MarkdownDescription: "Time when the object has been updated. Equals to _created_at_ if not updated after creation.", }, }
Functions ¶
func ExpandKerberosKey ¶
func ExpandKerberosKey(ctx context.Context, o types.Object, diags *diag.Diagnostics) *keys.KerberosKey
func ExpandKeysTSIGKey ¶
func FlattenKerberosKey ¶
func FlattenKerberosKey(ctx context.Context, from *keys.KerberosKey, diags *diag.Diagnostics) types.Object
func FlattenKeysTSIGKey ¶
func NewKerberosDataSource ¶
func NewKerberosDataSource() datasource.DataSource
func NewTsigDataSource ¶
func NewTsigDataSource() datasource.DataSource
func NewTsigResource ¶
Types ¶
type KerberosDataSource ¶
type KerberosDataSource struct {
// contains filtered or unexported fields
}
KerberosDataSource defines the data source implementation.
func (*KerberosDataSource) Configure ¶
func (d *KerberosDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*KerberosDataSource) Metadata ¶
func (d *KerberosDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*KerberosDataSource) Read ¶
func (d *KerberosDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*KerberosDataSource) Schema ¶
func (d *KerberosDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type KerberosKeyModel ¶
type KerberosKeyModel struct { Algorithm types.String `tfsdk:"algorithm"` Comment types.String `tfsdk:"comment"` Domain types.String `tfsdk:"domain"` Id types.String `tfsdk:"id"` Principal types.String `tfsdk:"principal"` Tags types.Map `tfsdk:"tags"` UploadedAt types.String `tfsdk:"uploaded_at"` Version types.Int64 `tfsdk:"version"` }
func (*KerberosKeyModel) Expand ¶
func (m *KerberosKeyModel) Expand(ctx context.Context, diags *diag.Diagnostics) *keys.KerberosKey
func (*KerberosKeyModel) Flatten ¶
func (m *KerberosKeyModel) Flatten(ctx context.Context, from *keys.KerberosKey, diags *diag.Diagnostics)
type KerberosKeyModelWithFilter ¶
type KerberosKeyModelWithFilter struct { Filters types.Map `tfsdk:"filters"` TagFilters types.Map `tfsdk:"tag_filters"` Results types.List `tfsdk:"results"` }
func (*KerberosKeyModelWithFilter) FlattenResults ¶
func (m *KerberosKeyModelWithFilter) FlattenResults(ctx context.Context, from []keys.KerberosKey, diags *diag.Diagnostics)
type KeysTSIGKeyModel ¶
type KeysTSIGKeyModel struct { Algorithm types.String `tfsdk:"algorithm"` Comment types.String `tfsdk:"comment"` CreatedAt timetypes.RFC3339 `tfsdk:"created_at"` Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` ProtocolName types.String `tfsdk:"protocol_name"` Secret types.String `tfsdk:"secret"` Tags types.Map `tfsdk:"tags"` UpdatedAt timetypes.RFC3339 `tfsdk:"updated_at"` }
func (*KeysTSIGKeyModel) Expand ¶
func (m *KeysTSIGKeyModel) Expand(ctx context.Context, diags *diag.Diagnostics) *keys.TSIGKey
func (*KeysTSIGKeyModel) Flatten ¶
func (m *KeysTSIGKeyModel) Flatten(ctx context.Context, from *keys.TSIGKey, diags *diag.Diagnostics)
type KeysTSIGKeyModelWithFilter ¶
type KeysTSIGKeyModelWithFilter struct { Filters types.Map `tfsdk:"filters"` TagFilters types.Map `tfsdk:"tag_filters"` Results types.List `tfsdk:"results"` }
func (*KeysTSIGKeyModelWithFilter) FlattenResults ¶
func (m *KeysTSIGKeyModelWithFilter) FlattenResults(ctx context.Context, from []keys.TSIGKey, diags *diag.Diagnostics)
type TsigDataSource ¶
type TsigDataSource struct {
// contains filtered or unexported fields
}
TsigDataSource defines the data source implementation.
func (*TsigDataSource) Configure ¶
func (d *TsigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*TsigDataSource) Metadata ¶
func (d *TsigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*TsigDataSource) Read ¶
func (d *TsigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*TsigDataSource) Schema ¶
func (d *TsigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type TsigResource ¶
type TsigResource struct {
// contains filtered or unexported fields
}
TsigResource defines the resource implementation.
func (*TsigResource) Configure ¶
func (r *TsigResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TsigResource) Create ¶
func (r *TsigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TsigResource) Delete ¶
func (r *TsigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TsigResource) ImportState ¶
func (r *TsigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TsigResource) Metadata ¶
func (r *TsigResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TsigResource) Read ¶
func (r *TsigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TsigResource) Schema ¶
func (r *TsigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TsigResource) Update ¶
func (r *TsigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.