Documentation ¶
Index ¶
- Constants
- func NewArtifactoryAnonymousUserResource() resource.Resource
- func NewArtifactoryManagedUserResource() resource.Resource
- func NewArtifactoryUserResource() resource.Resource
- func PackUser(user User, d *schema.ResourceData) diag.Diagnostics
- func ResourceArtifactoryUser() *schema.Resource
- type ArtifactoryAnonymousUserResource
- func (r *ArtifactoryAnonymousUserResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ArtifactoryAnonymousUserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ArtifactoryAnonymousUserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ArtifactoryAnonymousUserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ArtifactoryAnonymousUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ArtifactoryAnonymousUserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ArtifactoryAnonymousUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ArtifactoryAnonymousUserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ArtifactoryAnonymousUserResourceAPIModel
- type ArtifactoryAnonymousUserResourceModel
- type ArtifactoryBaseUserResource
- func (r *ArtifactoryBaseUserResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ArtifactoryBaseUserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ArtifactoryBaseUserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ArtifactoryBaseUserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ArtifactoryBaseUserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ArtifactoryBaseUserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ArtifactoryManagedUserResource
- type ArtifactoryUserResource
- type ArtifactoryUserResourceAPIModel
- type ArtifactoryUserResourceModel
- type User
Constants ¶
View Source
const UsersEndpointPath = "artifactory/api/security/users/"
Variables ¶
This section is empty.
Functions ¶
func NewArtifactoryAnonymousUserResource ¶ added in v7.8.0
func NewArtifactoryManagedUserResource ¶ added in v7.8.0
func NewArtifactoryUserResource ¶ added in v7.8.0
func PackUser ¶
func PackUser(user User, d *schema.ResourceData) diag.Diagnostics
func ResourceArtifactoryUser ¶
Types ¶
type ArtifactoryAnonymousUserResource ¶ added in v7.8.0
type ArtifactoryAnonymousUserResource struct {
// contains filtered or unexported fields
}
func (*ArtifactoryAnonymousUserResource) Configure ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryAnonymousUserResource) Create ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryAnonymousUserResource) Delete ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryAnonymousUserResource) ImportState ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryAnonymousUserResource) Metadata ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryAnonymousUserResource) Read ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryAnonymousUserResource) Schema ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactoryAnonymousUserResource) Update ¶ added in v7.8.0
func (r *ArtifactoryAnonymousUserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ArtifactoryAnonymousUserResourceAPIModel ¶ added in v7.8.0
type ArtifactoryAnonymousUserResourceAPIModel struct {
Name string `json:"name"`
}
ArtifactoryAnonymousUserResourceAPIModel describes the API data model.
type ArtifactoryAnonymousUserResourceModel ¶ added in v7.8.0
type ArtifactoryAnonymousUserResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` }
ArtifactoryAnonymousUserResourceModel describes the Terraform resource data model to match the resource schema.
type ArtifactoryBaseUserResource ¶ added in v7.8.0
type ArtifactoryBaseUserResource struct {
// contains filtered or unexported fields
}
func (*ArtifactoryBaseUserResource) Configure ¶ added in v7.8.0
func (r *ArtifactoryBaseUserResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryBaseUserResource) Create ¶ added in v7.8.0
func (r *ArtifactoryBaseUserResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryBaseUserResource) Delete ¶ added in v7.8.0
func (r *ArtifactoryBaseUserResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryBaseUserResource) ImportState ¶ added in v7.8.0
func (r *ArtifactoryBaseUserResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryBaseUserResource) Read ¶ added in v7.8.0
func (r *ArtifactoryBaseUserResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryBaseUserResource) Update ¶ added in v7.8.0
func (r *ArtifactoryBaseUserResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ArtifactoryManagedUserResource ¶ added in v7.8.0
type ArtifactoryManagedUserResource struct {
ArtifactoryBaseUserResource
}
func (*ArtifactoryManagedUserResource) Metadata ¶ added in v7.8.0
func (r *ArtifactoryManagedUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryManagedUserResource) Schema ¶ added in v7.8.0
func (r *ArtifactoryManagedUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
type ArtifactoryUserResource ¶ added in v7.8.0
type ArtifactoryUserResource struct {
ArtifactoryBaseUserResource
}
func (*ArtifactoryUserResource) Metadata ¶ added in v7.8.0
func (r *ArtifactoryUserResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryUserResource) Schema ¶ added in v7.8.0
func (r *ArtifactoryUserResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
type ArtifactoryUserResourceAPIModel ¶ added in v7.8.0
type ArtifactoryUserResourceAPIModel struct { Name string `json:"name"` Email string `json:"email"` Password string `json:"password,omitempty"` Admin bool `json:"admin"` ProfileUpdatable bool `json:"profileUpdatable"` DisableUIAccess bool `json:"disableUIAccess"` InternalPasswordDisabled bool `json:"internalPasswordDisabled"` Groups []string `json:"groups"` }
ArtifactoryUserResourceAPIModel describes the API data model.
type ArtifactoryUserResourceModel ¶ added in v7.8.0
type ArtifactoryUserResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Email types.String `tfsdk:"email"` Password types.String `tfsdk:"password"` Admin types.Bool `tfsdk:"admin"` ProfileUpdatable types.Bool `tfsdk:"profile_updatable"` DisableUIAccess types.Bool `tfsdk:"disable_ui_access"` InternalPasswordDisabled types.Bool `tfsdk:"internal_password_disabled"` Groups types.Set `tfsdk:"groups"` }
ArtifactoryUserResourceModel describes the Terraform resource data model to match the resource schema.
func (*ArtifactoryUserResourceModel) ToState ¶ added in v7.8.0
func (r *ArtifactoryUserResourceModel) ToState(ctx context.Context, user *ArtifactoryUserResourceAPIModel)
type User ¶
type User struct { Name string `json:"name"` Email string `json:"email"` Password string `json:"password,omitempty"` Admin bool `json:"admin"` ProfileUpdatable bool `json:"profileUpdatable"` DisableUIAccess bool `json:"disableUIAccess"` InternalPasswordDisabled bool `json:"internalPasswordDisabled"` LastLoggedIn string `json:"lastLoggedIn"` Realm string `json:"realm"` Groups []string `json:"groups"` }
Click to show internal directories.
Click to hide internal directories.