Documentation ¶
Index ¶
- Constants
- func BuildPermissionTargetSchema() map[string]*schema.Schema
- func NewCertificateResource() resource.Resource
- func NewDistributionPublicKeyResource() resource.Resource
- func NewGlobalEnvironmentResource() resource.Resource
- func NewGroupResource() resource.Resource
- func NewKeyPairResource() resource.Resource
- func NewPasswordExpirationPolicyResource() resource.Resource
- func NewScopedTokenResource() resource.Resource
- func NewUserLockPolicyResource() resource.Resource
- func NewVaultConfigurationResource() resource.Resource
- func PackPermissionTarget(permissionTarget *PermissionTargetParams, d *schema.ResourceData) diag.Diagnostics
- func PermTargetExists(id string, m interface{}) (bool, error)
- func ResourceArtifactoryAccessToken() *schema.Resource
- func ResourceArtifactoryApiKey() *schema.Resource
- func ResourceArtifactoryPermissionTarget() *schema.Resource
- func ResourceArtifactoryPermissionTargets() *schema.Resource
- func VerifyKeyPair(id string, request *resty.Request) (*resty.Response, error)
- type AccessTokenErrorResponseAPIModel
- type AccessTokenGetAPIModel
- type AccessTokenPostRequestAPIModel
- type AccessTokenPostResponseAPIModel
- type Actions
- type ApiKey
- type ArtifactoryGroupResource
- func (r *ArtifactoryGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ArtifactoryGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ArtifactoryGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ArtifactoryGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ArtifactoryGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ArtifactoryGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ArtifactoryGroupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ArtifactoryGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ArtifactoryGroupResourceAPIModel
- type ArtifactoryGroupResourceModel
- type CertificateAPIModel
- type CertificateResource
- func (r CertificateResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
- func (r *CertificateResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *CertificateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *CertificateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *CertificateResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *CertificateResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *CertificateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *CertificateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *CertificateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CertificateResourceModel
- type DistributionPublicKeyAPIModel
- type DistributionPublicKeyResource
- func (r *DistributionPublicKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DistributionPublicKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DistributionPublicKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DistributionPublicKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DistributionPublicKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DistributionPublicKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DistributionPublicKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DistributionPublicKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DistributionPublicKeyResourceModel
- type DistributionPublicKeysList
- type GlobalEnvironmentModel
- type GlobalEnvironmentPostRenameRequestAPIModel
- type GlobalEnvironmentPostRequestAPIModel
- type GlobalEnvironmentResource
- func (r *GlobalEnvironmentResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *GlobalEnvironmentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *GlobalEnvironmentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *GlobalEnvironmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GlobalEnvironmentResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *GlobalEnvironmentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GlobalEnvironmentResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *GlobalEnvironmentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GlobalEnvironmentsAPIModel
- type KeyPairAPIModel
- type KeyPairResource
- func (r *KeyPairResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *KeyPairResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *KeyPairResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *KeyPairResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *KeyPairResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *KeyPairResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *KeyPairResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *KeyPairResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type KeyPairResourceModel
- type PasswordExpirationPolicyAPIModel
- type PasswordExpirationPolicyResource
- func (r *PasswordExpirationPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PasswordExpirationPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PasswordExpirationPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PasswordExpirationPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PasswordExpirationPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PasswordExpirationPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PasswordExpirationPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PasswordExpirationPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PasswordExpirationPolicyResourceModel
- type PermissionTargetParams
- type PermissionTargetSection
- type ScopedTokenResource
- func (r *ScopedTokenResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ScopedTokenResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ScopedTokenResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ScopedTokenResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ScopedTokenResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ScopedTokenResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ScopedTokenResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ScopedTokenResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *ScopedTokenResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- type ScopedTokenResourceModel
- type ScopedTokenResourceModelV0
- type TablessSigningKeyType
- func (t TablessSigningKeyType) Equal(o attr.Type) bool
- func (t TablessSigningKeyType) String() string
- func (t TablessSigningKeyType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t TablessSigningKeyType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t TablessSigningKeyType) ValueType(ctx context.Context) attr.Value
- type TablessSigningKeyValue
- type UserLockPolicyAPIModel
- type UserLockPolicyResource
- func (r *UserLockPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *UserLockPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UserLockPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UserLockPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UserLockPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *UserLockPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserLockPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *UserLockPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type UserLockPolicyResourceModel
- type VaultConfigurationAPIModel
- type VaultConfigurationConfigAPIModel
- type VaultConfigurationConfigAuthAPIModel
- type VaultConfigurationConfigMountAPIModel
- type VaultConfigurationResource
- func (r *VaultConfigurationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VaultConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VaultConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VaultConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VaultConfigurationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VaultConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VaultConfigurationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VaultConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r VaultConfigurationResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type VaultConfigurationResourceModel
Constants ¶
const ( PermRead = "read" PermWrite = "write" PermAnnotate = "annotate" PermDelete = "delete" PermManage = "manage" PermManagedXrayMeta = "managedXrayMeta" PermDistribute = "distribute" )
const ( VaultConfigurationsEndpoint = "access/api/v1/vault/configs" VaultConfigurationEndpoint = "access/api/v1/vault/configs/{name}" )
const ApiKeyEndpoint = "artifactory/api/security/apiKey"
const CertificateEndpoint = "artifactory/api/system/security/certificates/"
const DistributionPublicKeysAPIEndPoint = "artifactory/api/security/keys/trusted"
const GroupsEndpoint = "artifactory/api/security/groups/"
const KeypairEndPoint = "artifactory/api/security/keypair/"
const PasswordExpirationPolicyEndpoint = "artifactory/api/security/configuration/passwordExpirationPolicy"
const PermissionsEndPoint = "artifactory/api/v2/security/permissions/"
const UserLockPolicyEndpoint = "artifactory/api/security/userLockPolicy"
Variables ¶
This section is empty.
Functions ¶
func NewCertificateResource ¶
func NewGroupResource ¶
func NewKeyPairResource ¶
func NewScopedTokenResource ¶
func NewVaultConfigurationResource ¶ added in v11.1.0
func PackPermissionTarget ¶
func PackPermissionTarget(permissionTarget *PermissionTargetParams, d *schema.ResourceData) diag.Diagnostics
func PermTargetExists ¶
func VerifyKeyPair ¶
Types ¶
type AccessTokenGetAPIModel ¶
type AccessTokenPostRequestAPIModel ¶
type AccessTokenPostRequestAPIModel struct { GrantType string `json:"grant_type"` Username string `json:"username,omitempty"` ProjectKey string `json:"project_key"` Scope string `json:"scope,omitempty"` ExpiresIn int64 `json:"expires_in"` Refreshable bool `json:"refreshable"` Description string `json:"description,omitempty"` Audience string `json:"audience,omitempty"` IncludeReferenceToken bool `json:"include_reference_token"` }
type AccessTokenPostResponseAPIModel ¶
type AccessTokenPostResponseAPIModel struct { TokenId string `json:"token_id"` AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` ExpiresIn int64 `json:"expires_in"` Scope string `json:"scope"` TokenType string `json:"token_type"` ReferenceToken string `json:"reference_token"` }
type ArtifactoryGroupResource ¶
type ArtifactoryGroupResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ArtifactoryGroupResource) Configure ¶
func (r *ArtifactoryGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryGroupResource) Create ¶
func (r *ArtifactoryGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryGroupResource) Delete ¶
func (r *ArtifactoryGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryGroupResource) ImportState ¶
func (r *ArtifactoryGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryGroupResource) Metadata ¶
func (r *ArtifactoryGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryGroupResource) Read ¶
func (r *ArtifactoryGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryGroupResource) Schema ¶
func (r *ArtifactoryGroupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactoryGroupResource) Update ¶
func (r *ArtifactoryGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ArtifactoryGroupResourceAPIModel ¶
type ArtifactoryGroupResourceAPIModel struct { Name string `json:"name"` Description string `json:"description,omitempty"` ExternalId string `json:"externalId,omitempty"` AutoJoin bool `json:"autoJoin"` AdminPrivileges bool `json:"adminPrivileges"` Realm string `json:"realm"` RealmAttributes string `json:"realmAttributes,omitempty"` UsersNames []string `json:"userNames"` WatchManager bool `json:"watchManager"` PolicyManager bool `json:"policyManager"` ReportsManager bool `json:"reportsManager"` }
ArtifactoryGroupResourceAPIModel describes the API data model.
type ArtifactoryGroupResourceModel ¶
type ArtifactoryGroupResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` ExternalId types.String `tfsdk:"external_id"` AutoJoin types.Bool `tfsdk:"auto_join"` AdminPrivileges types.Bool `tfsdk:"admin_privileges"` Realm types.String `tfsdk:"realm"` RealmAttributes types.String `tfsdk:"realm_attributes"` DetachAllUsers types.Bool `tfsdk:"detach_all_users"` UsersNames types.Set `tfsdk:"users_names"` WatchManager types.Bool `tfsdk:"watch_manager"` PolicyManager types.Bool `tfsdk:"policy_manager"` ReportsManager types.Bool `tfsdk:"reports_manager"` }
ArtifactoryGroupResourceModel describes the Terraform resource data model to match the resource schema.
func (*ArtifactoryGroupResourceModel) ToState ¶
func (r *ArtifactoryGroupResourceModel) ToState(ctx context.Context, group ArtifactoryGroupResourceAPIModel) diag.Diagnostics
type CertificateAPIModel ¶
type CertificateAPIModel struct { Alias string `json:"certificateAlias"` Fingerprint string `json:"fingerprint"` IssuedOn string `json:"issuedOn"` IssuedBy string `json:"issuedBy"` IssuedTo string `json:"issuedTo"` ValidUntil string `json:"validUntil"` }
CertificateAPIModel describes the API data model.
func FindCertificate ¶
func FindCertificate(alias string, restyRequest *resty.Request) (*CertificateAPIModel, error)
type CertificateResource ¶
type CertificateResource struct { ProviderData util.ProviderMetadata TypeName string }
func (CertificateResource) ConfigValidators ¶
func (r CertificateResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
func (*CertificateResource) Configure ¶
func (r *CertificateResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*CertificateResource) Create ¶
func (r *CertificateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*CertificateResource) Delete ¶
func (r *CertificateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*CertificateResource) ImportState ¶
func (r *CertificateResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*CertificateResource) Metadata ¶
func (r *CertificateResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*CertificateResource) Read ¶
func (r *CertificateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*CertificateResource) Schema ¶
func (r *CertificateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*CertificateResource) Update ¶
func (r *CertificateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type CertificateResourceModel ¶
type CertificateResourceModel struct { Alias types.String `tfsdk:"alias"` Content types.String `tfsdk:"content"` File types.String `tfsdk:"file"` Fingerprint types.String `tfsdk:"fingerprint"` IssuedBy types.String `tfsdk:"issued_by"` IssuedOn types.String `tfsdk:"issued_on"` IssuedTo types.String `tfsdk:"issued_to"` ValidUntil types.String `tfsdk:"valid_until"` }
CertificateResourceModel describes the Terraform resource data model to match the resource schema.
func (*CertificateResourceModel) FromAPIModel ¶
func (r *CertificateResourceModel) FromAPIModel(ctx context.Context, model *CertificateAPIModel) diag.Diagnostics
type DistributionPublicKeyAPIModel ¶
type DistributionPublicKeyAPIModel struct { KeyId string `json:"kid,omitempty"` Alias string `json:"alias"` Fingerprint string `json:"fingerprint,omitempty"` PublicKey string `json:"key"` IssuedOn string `json:"issued_on,omitempty"` IssuedBy string `json:"issued_by,omitempty"` ValidUntil string `json:"valid_until,omitempty"` }
DistributionPublicKeyAPIModel describes the API data model.
type DistributionPublicKeyResource ¶
type DistributionPublicKeyResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*DistributionPublicKeyResource) Configure ¶
func (r *DistributionPublicKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DistributionPublicKeyResource) Create ¶
func (r *DistributionPublicKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DistributionPublicKeyResource) Delete ¶
func (r *DistributionPublicKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DistributionPublicKeyResource) ImportState ¶
func (r *DistributionPublicKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*DistributionPublicKeyResource) Metadata ¶
func (r *DistributionPublicKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DistributionPublicKeyResource) Read ¶
func (r *DistributionPublicKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DistributionPublicKeyResource) Schema ¶
func (r *DistributionPublicKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DistributionPublicKeyResource) Update ¶
func (r *DistributionPublicKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DistributionPublicKeyResourceModel ¶
type DistributionPublicKeyResourceModel struct { KeyId types.String `tfsdk:"key_id"` Alias types.String `tfsdk:"alias"` Fingerprint types.String `tfsdk:"fingerprint"` PublicKey TablessSigningKeyValue `tfsdk:"public_key"` IssuedOn types.String `tfsdk:"issued_on"` IssuedBy types.String `tfsdk:"issued_by"` ValidUntil types.String `tfsdk:"valid_until"` }
DistributionPublicKeyResourceModel describes the Terraform resource data model to match the resource schema.
func (*DistributionPublicKeyResourceModel) FromAPIModel ¶
func (r *DistributionPublicKeyResourceModel) FromAPIModel(ctx context.Context, model *DistributionPublicKeyAPIModel) diag.Diagnostics
type DistributionPublicKeysList ¶
type DistributionPublicKeysList struct {
Keys []DistributionPublicKeyAPIModel `json:"keys"`
}
type GlobalEnvironmentModel ¶
type GlobalEnvironmentModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` }
GlobalEnvironmentModel describes the Terraform resource data model to match the resource schema.
type GlobalEnvironmentPostRenameRequestAPIModel ¶
type GlobalEnvironmentPostRenameRequestAPIModel struct {
Name string `json:"new_name"`
}
type GlobalEnvironmentPostRequestAPIModel ¶
type GlobalEnvironmentPostRequestAPIModel struct {
Name string `json:"name"`
}
type GlobalEnvironmentResource ¶
type GlobalEnvironmentResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*GlobalEnvironmentResource) Configure ¶
func (r *GlobalEnvironmentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GlobalEnvironmentResource) Create ¶
func (r *GlobalEnvironmentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GlobalEnvironmentResource) Delete ¶
func (r *GlobalEnvironmentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GlobalEnvironmentResource) ImportState ¶
func (r *GlobalEnvironmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*GlobalEnvironmentResource) Metadata ¶
func (r *GlobalEnvironmentResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GlobalEnvironmentResource) Read ¶
func (r *GlobalEnvironmentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GlobalEnvironmentResource) Schema ¶
func (r *GlobalEnvironmentResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GlobalEnvironmentResource) Update ¶
func (r *GlobalEnvironmentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GlobalEnvironmentsAPIModel ¶
type GlobalEnvironmentsAPIModel []struct { Name string `json:"name"` }
type KeyPairAPIModel ¶
type KeyPairAPIModel struct { PairName string `json:"pairName"` PairType string `json:"pairType"` Alias string `json:"alias"` PrivateKey string `json:"privateKey"` Passphrase string `json:"passphrase"` PublicKey string `json:"publicKey"` }
KeyPairAPIModel describes the API data model.
type KeyPairResource ¶
type KeyPairResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*KeyPairResource) Configure ¶
func (r *KeyPairResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*KeyPairResource) Create ¶
func (r *KeyPairResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*KeyPairResource) Delete ¶
func (r *KeyPairResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*KeyPairResource) ImportState ¶
func (r *KeyPairResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*KeyPairResource) Metadata ¶
func (r *KeyPairResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*KeyPairResource) Read ¶
func (r *KeyPairResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*KeyPairResource) Schema ¶
func (r *KeyPairResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*KeyPairResource) Update ¶
func (r *KeyPairResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type KeyPairResourceModel ¶
type KeyPairResourceModel struct { PairName types.String `tfsdk:"pair_name"` PairType types.String `tfsdk:"pair_type"` Alias types.String `tfsdk:"alias"` PrivateKey TablessSigningKeyValue `tfsdk:"private_key"` Passphrase types.String `tfsdk:"passphrase"` PublicKey TablessSigningKeyValue `tfsdk:"public_key"` }
KeyPairResourceModel describes the Terraform resource data model to match the resource schema.
func (*KeyPairResourceModel) FromAPIModel ¶
func (r *KeyPairResourceModel) FromAPIModel(ctx context.Context, model *KeyPairAPIModel) diag.Diagnostics
type PasswordExpirationPolicyResource ¶
type PasswordExpirationPolicyResource struct {
ProviderData util.ProviderMetadata
}
func (*PasswordExpirationPolicyResource) Configure ¶
func (r *PasswordExpirationPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PasswordExpirationPolicyResource) Create ¶
func (r *PasswordExpirationPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PasswordExpirationPolicyResource) Delete ¶
func (r *PasswordExpirationPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PasswordExpirationPolicyResource) ImportState ¶
func (r *PasswordExpirationPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*PasswordExpirationPolicyResource) Metadata ¶
func (r *PasswordExpirationPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PasswordExpirationPolicyResource) Read ¶
func (r *PasswordExpirationPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PasswordExpirationPolicyResource) Schema ¶
func (r *PasswordExpirationPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PasswordExpirationPolicyResource) Update ¶
func (r *PasswordExpirationPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PermissionTargetParams ¶
type PermissionTargetParams struct { Name string `json:"name"` Repo *PermissionTargetSection `json:"repo,omitempty"` Build *PermissionTargetSection `json:"build,omitempty"` ReleaseBundle *PermissionTargetSection `json:"releaseBundle,omitempty"` }
PermissionTargetParams Copy from https://github.com/jfrog/jfrog-client-go/blob/master/artifactory/services/permissiontarget.go#L116
Using struct pointers to keep the fields null if they are empty. Artifactory evaluates inner struct typed fields if they are not null, which can lead to failures in the request.
type PermissionTargetSection ¶
type ScopedTokenResource ¶
type ScopedTokenResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ScopedTokenResource) Configure ¶
func (r *ScopedTokenResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ScopedTokenResource) Create ¶
func (r *ScopedTokenResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ScopedTokenResource) Delete ¶
func (r *ScopedTokenResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ScopedTokenResource) ImportState ¶
func (r *ScopedTokenResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ScopedTokenResource) Metadata ¶
func (r *ScopedTokenResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ScopedTokenResource) Read ¶
func (r *ScopedTokenResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ScopedTokenResource) Schema ¶
func (r *ScopedTokenResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ScopedTokenResource) Update ¶
func (r *ScopedTokenResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*ScopedTokenResource) UpgradeState ¶ added in v11.2.0
func (r *ScopedTokenResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
type ScopedTokenResourceModel ¶
type ScopedTokenResourceModel struct { Id types.String `tfsdk:"id"` GrantType types.String `tfsdk:"grant_type"` Username types.String `tfsdk:"username"` ProjectKey types.String `tfsdk:"project_key"` Scopes types.Set `tfsdk:"scopes"` ExpiresIn types.Int64 `tfsdk:"expires_in"` Refreshable types.Bool `tfsdk:"refreshable"` IncludeReferenceToken types.Bool `tfsdk:"include_reference_token"` Description types.String `tfsdk:"description"` Audiences types.Set `tfsdk:"audiences"` AccessToken types.String `tfsdk:"access_token"` RefreshToken types.String `tfsdk:"refresh_token"` ReferenceToken types.String `tfsdk:"reference_token"` TokenType types.String `tfsdk:"token_type"` Subject types.String `tfsdk:"subject"` Expiry types.Int64 `tfsdk:"expiry"` IssuedAt types.Int64 `tfsdk:"issued_at"` Issuer types.String `tfsdk:"issuer"` IgnoreMissingTokenWarning types.Bool `tfsdk:"ignore_missing_token_warning"` }
func (*ScopedTokenResourceModel) GetResponseToState ¶
func (r *ScopedTokenResourceModel) GetResponseToState(ctx context.Context, accessToken *AccessTokenGetAPIModel)
func (*ScopedTokenResourceModel) PostResponseToState ¶
func (r *ScopedTokenResourceModel) PostResponseToState(ctx context.Context, accessTokenResp *AccessTokenPostResponseAPIModel, accessTokenPostBody *AccessTokenPostRequestAPIModel, getResult *AccessTokenGetAPIModel) diag.Diagnostics
type ScopedTokenResourceModelV0 ¶ added in v11.2.0
type ScopedTokenResourceModelV0 struct { Id types.String `tfsdk:"id"` GrantType types.String `tfsdk:"grant_type"` Username types.String `tfsdk:"username"` ProjectKey types.String `tfsdk:"project_key"` Scopes types.Set `tfsdk:"scopes"` ExpiresIn types.Int64 `tfsdk:"expires_in"` Refreshable types.Bool `tfsdk:"refreshable"` IncludeReferenceToken types.Bool `tfsdk:"include_reference_token"` Description types.String `tfsdk:"description"` Audiences types.Set `tfsdk:"audiences"` AccessToken types.String `tfsdk:"access_token"` RefreshToken types.String `tfsdk:"refresh_token"` ReferenceToken types.String `tfsdk:"reference_token"` TokenType types.String `tfsdk:"token_type"` Subject types.String `tfsdk:"subject"` Expiry types.Int64 `tfsdk:"expiry"` IssuedAt types.Int64 `tfsdk:"issued_at"` Issuer types.String `tfsdk:"issuer"` }
ScopedTokenResourceModel describes the Terraform resource data model to match the resource schema.
type TablessSigningKeyType ¶
type TablessSigningKeyType struct {
basetypes.StringType
}
func (TablessSigningKeyType) String ¶
func (t TablessSigningKeyType) String() string
func (TablessSigningKeyType) ValueFromString ¶
func (t TablessSigningKeyType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
func (TablessSigningKeyType) ValueFromTerraform ¶
type TablessSigningKeyValue ¶
type TablessSigningKeyValue struct {
basetypes.StringValue
}
func (TablessSigningKeyValue) StringSemanticEquals ¶
func (v TablessSigningKeyValue) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
StringSemanticEquals returns true if the given string value is semantically equal to the current string value. (case-insensitive)
type UserLockPolicyAPIModel ¶
type UserLockPolicyResource ¶
type UserLockPolicyResource struct {
ProviderData util.ProviderMetadata
}
func (*UserLockPolicyResource) Configure ¶
func (r *UserLockPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserLockPolicyResource) Create ¶
func (r *UserLockPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*UserLockPolicyResource) Delete ¶
func (r *UserLockPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*UserLockPolicyResource) ImportState ¶
func (r *UserLockPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*UserLockPolicyResource) Metadata ¶
func (r *UserLockPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*UserLockPolicyResource) Read ¶
func (r *UserLockPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*UserLockPolicyResource) Schema ¶
func (r *UserLockPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*UserLockPolicyResource) Update ¶
func (r *UserLockPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VaultConfigurationAPIModel ¶ added in v11.1.0
type VaultConfigurationAPIModel struct { Key string `json:"key,omitempty"` Type string `json:"type"` Config VaultConfigurationConfigAPIModel `json:"config"` }
type VaultConfigurationConfigAPIModel ¶ added in v11.1.0
type VaultConfigurationConfigAPIModel struct { URL string `json:"url"` Auth VaultConfigurationConfigAuthAPIModel `json:"auth"` Mounts []VaultConfigurationConfigMountAPIModel `json:"mounts"` }
type VaultConfigurationConfigAuthAPIModel ¶ added in v11.1.0
type VaultConfigurationConfigMountAPIModel ¶ added in v11.1.0
type VaultConfigurationResource ¶ added in v11.1.0
type VaultConfigurationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*VaultConfigurationResource) Configure ¶ added in v11.1.0
func (r *VaultConfigurationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VaultConfigurationResource) Create ¶ added in v11.1.0
func (r *VaultConfigurationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VaultConfigurationResource) Delete ¶ added in v11.1.0
func (r *VaultConfigurationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VaultConfigurationResource) ImportState ¶ added in v11.1.0
func (r *VaultConfigurationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*VaultConfigurationResource) Metadata ¶ added in v11.1.0
func (r *VaultConfigurationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VaultConfigurationResource) Read ¶ added in v11.1.0
func (r *VaultConfigurationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VaultConfigurationResource) Schema ¶ added in v11.1.0
func (r *VaultConfigurationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VaultConfigurationResource) Update ¶ added in v11.1.0
func (r *VaultConfigurationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (VaultConfigurationResource) ValidateConfig ¶ added in v11.1.0
func (r VaultConfigurationResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
Source Files ¶
- resource_artifactory_access_token.go
- resource_artifactory_api_key.go
- resource_artifactory_certificate.go
- resource_artifactory_distribution_public_key.go
- resource_artifactory_global_environment.go
- resource_artifactory_group.go
- resource_artifactory_keypair.go
- resource_artifactory_password_expiration_policy.go
- resource_artifactory_permission_target.go
- resource_artifactory_scoped_token.go
- resource_artifactory_user_lock_policy.go
- resource_artifactory_vault_configuration.go
- security.go