Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewJwtResource() resource.Resource
- func NewNkeyResource() resource.Resource
- func UpdateJWT(data *JwtResourceModel) error
- func UpdateNKey(data *NkeyResourceModel) error
- type JwtResource
- func (r *JwtResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *JwtResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *JwtResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *JwtResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *JwtResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *JwtResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *JwtResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *JwtResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type JwtResourceModel
- type NkeyResource
- func (r *NkeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NkeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NkeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NkeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NkeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NkeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NkeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NkeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NkeyResourceModel
- type ScaffoldingProvider
- func (p *ScaffoldingProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ScaffoldingProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ScaffoldingProvider) Functions(ctx context.Context) []func() function.Function
- func (p *ScaffoldingProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ScaffoldingProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ScaffoldingProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ScaffoldingProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJwtResource ¶ added in v1.0.15
func NewNkeyResource ¶
func UpdateJWT ¶ added in v1.0.15
func UpdateJWT(data *JwtResourceModel) error
func UpdateNKey ¶ added in v1.0.9
func UpdateNKey(data *NkeyResourceModel) error
Types ¶
type JwtResource ¶ added in v1.0.15
type JwtResource struct { }
JwtResource defines the resource implementation.
func (*JwtResource) Configure ¶ added in v1.0.15
func (r *JwtResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*JwtResource) Create ¶ added in v1.0.15
func (r *JwtResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*JwtResource) Delete ¶ added in v1.0.15
func (r *JwtResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*JwtResource) ImportState ¶ added in v1.0.15
func (r *JwtResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*JwtResource) Metadata ¶ added in v1.0.15
func (r *JwtResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*JwtResource) Read ¶ added in v1.0.15
func (r *JwtResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*JwtResource) Schema ¶ added in v1.0.15
func (r *JwtResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*JwtResource) Update ¶ added in v1.0.15
func (r *JwtResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type JwtResourceModel ¶ added in v1.0.15
type JwtResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Subject types.String `tfsdk:"sub"` Issuer types.String `tfsdk:"iss"` IssuedAt types.Int64 `tfsdk:"iat"` Expires types.Int64 `tfsdk:"exp"` NotBefore types.Int64 `tfsdk:"nbf"` Audience types.String `tfsdk:"aud"` Nats types.String `tfsdk:"nats"` Token types.String `tfsdk:"token"` }
JwtResourceModel describes the resource data model.
type NkeyResource ¶
type NkeyResource struct { }
NkeyResource defines the resource implementation.
func (*NkeyResource) Configure ¶
func (r *NkeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NkeyResource) Create ¶
func (r *NkeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NkeyResource) Delete ¶
func (r *NkeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NkeyResource) ImportState ¶
func (r *NkeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NkeyResource) Metadata ¶
func (r *NkeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NkeyResource) Read ¶
func (r *NkeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NkeyResource) Schema ¶
func (r *NkeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NkeyResource) Update ¶
func (r *NkeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NkeyResourceModel ¶
type NkeyResourceModel struct { Type types.String `tfsdk:"type"` ID types.String `tfsdk:"id"` Subject types.String `tfsdk:"subject"` Private types.String `tfsdk:"private"` Public types.String `tfsdk:"public"` }
NkeyResourceModel describes the resource data model.
type ScaffoldingProvider ¶
type ScaffoldingProvider struct {
// contains filtered or unexported fields
}
ScaffoldingProvider defines the provider implementation.
func (*ScaffoldingProvider) Configure ¶
func (p *ScaffoldingProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ScaffoldingProvider) DataSources ¶
func (p *ScaffoldingProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ScaffoldingProvider) Functions ¶
func (p *ScaffoldingProvider) Functions(ctx context.Context) []func() function.Function
func (*ScaffoldingProvider) Metadata ¶
func (p *ScaffoldingProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ScaffoldingProvider) Resources ¶
func (p *ScaffoldingProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ScaffoldingProvider) Schema ¶
func (p *ScaffoldingProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ScaffoldingProviderModel ¶
ScaffoldingProviderModel describes the provider data model.
Click to show internal directories.
Click to hide internal directories.