user

package
v7.11.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const UsersEndpointPath = "artifactory/api/security/users/"

Variables

This section is empty.

Functions

func NewArtifactoryAnonymousUserResource added in v7.8.0

func NewArtifactoryAnonymousUserResource() resource.Resource

func NewArtifactoryManagedUserResource added in v7.8.0

func NewArtifactoryManagedUserResource() resource.Resource

func NewArtifactoryUserResource added in v7.8.0

func NewArtifactoryUserResource() resource.Resource

func PackUser

func PackUser(user User, d *schema.ResourceData) diag.Diagnostics

func ResourceArtifactoryUser

func ResourceArtifactoryUser() *schema.Resource

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 (*ArtifactoryAnonymousUserResource) Create added in v7.8.0

func (*ArtifactoryAnonymousUserResource) Delete added in v7.8.0

func (*ArtifactoryAnonymousUserResource) ImportState added in v7.8.0

ImportState imports the resource into the Terraform state.

func (*ArtifactoryAnonymousUserResource) Metadata added in v7.8.0

func (*ArtifactoryAnonymousUserResource) Read added in v7.8.0

func (*ArtifactoryAnonymousUserResource) Schema added in v7.8.0

func (*ArtifactoryAnonymousUserResource) Update added in v7.8.0

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 (*ArtifactoryBaseUserResource) Create added in v7.8.0

func (*ArtifactoryBaseUserResource) Delete added in v7.8.0

func (*ArtifactoryBaseUserResource) ImportState added in v7.8.0

ImportState imports the resource into the Terraform state.

func (*ArtifactoryBaseUserResource) Read added in v7.8.0

func (*ArtifactoryBaseUserResource) Update added in v7.8.0

type ArtifactoryManagedUserResource added in v7.8.0

type ArtifactoryManagedUserResource struct {
	ArtifactoryBaseUserResource
}

func (*ArtifactoryManagedUserResource) Metadata added in v7.8.0

func (*ArtifactoryManagedUserResource) Schema added in v7.8.0

type ArtifactoryUserResource added in v7.8.0

type ArtifactoryUserResource struct {
	ArtifactoryBaseUserResource
}

func (*ArtifactoryUserResource) Metadata added in v7.8.0

func (*ArtifactoryUserResource) Schema added in v7.8.0

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

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"`
}

Jump to

Keyboard shortcuts

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