Documentation ¶
Index ¶
- Constants
- func FindConfigurationById[C Configuration](configurations []C, id string) *C
- func NewBackupResource() resource.Resource
- func NewGeneralSecurityResource() resource.Resource
- func NewLdapGroupSettingResource() resource.Resource
- func NewLdapSettingResource() resource.Resource
- func NewMailServerResource() resource.Resource
- func NewPackageCleanupPolicyResource() resource.Resource
- func NewPropertySetResource() resource.Resource
- func NewProxyResource() resource.Resource
- func NewRepositoryLayoutResource() resource.Resource
- func ResourceArtifactoryLdapGroupSetting() *schema.Resource
- func ResourceArtifactoryLdapSetting() *schema.Resource
- func ResourceArtifactoryOauthSettings() *schema.Resource
- func ResourceArtifactorySamlSettings() *schema.Resource
- func SendConfigurationPatch(content []byte, m interface{}) error
- type ArtifactoryLdapGroupSettingResource
- func (r *ArtifactoryLdapGroupSettingResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ArtifactoryLdapGroupSettingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ArtifactoryLdapGroupSettingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ArtifactoryLdapGroupSettingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ArtifactoryLdapGroupSettingResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ArtifactoryLdapGroupSettingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ArtifactoryLdapGroupSettingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ArtifactoryLdapGroupSettingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *ArtifactoryLdapGroupSettingResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type ArtifactoryLdapGroupSettingResourceAPIModel
- type ArtifactoryLdapGroupSettingResourceModel
- type ArtifactoryLdapSettingResource
- func (r *ArtifactoryLdapSettingResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ArtifactoryLdapSettingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ArtifactoryLdapSettingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ArtifactoryLdapSettingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ArtifactoryLdapSettingResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ArtifactoryLdapSettingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ArtifactoryLdapSettingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ArtifactoryLdapSettingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ArtifactoryLdapSettingResourceAPIModel
- type ArtifactoryLdapSettingResourceModel
- type BackupAPIModel
- type BackupResource
- func (r *BackupResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BackupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BackupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BackupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BackupResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BackupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BackupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BackupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BackupResourceModel
- type Backups
- type Configuration
- type GeneralSecurityAPIModel
- type GeneralSecurityResource
- func (r *GeneralSecurityResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *GeneralSecurityResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *GeneralSecurityResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *GeneralSecurityResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GeneralSecurityResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *GeneralSecurityResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GeneralSecurityResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *GeneralSecurityResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GeneralSecurityResourceModel
- type GeneralSettingsAPIModel
- type LdapGroupSetting
- type LdapGroupSettings
- type LdapSearchAPIModel
- type LdapSearchType
- type LdapSetting
- type LdapSettings
- type MailServer
- type MailServerAPIModel
- type MailServerResource
- func (r *MailServerResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *MailServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MailServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MailServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *MailServerResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *MailServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MailServerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MailServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MailServerResourceModel
- type OauthProviderSettings
- type OauthSecurity
- type OauthSettings
- type OauthSettingsWrapper
- type OauthType
- type PackageCleanupPolicyAPIModel
- type PackageCleanupPolicyEnablementAPIModel
- type PackageCleanupPolicyResource
- func (r *PackageCleanupPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PackageCleanupPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PackageCleanupPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PackageCleanupPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PackageCleanupPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PackageCleanupPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PackageCleanupPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PackageCleanupPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *PackageCleanupPolicyResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- type PackageCleanupPolicyResourceModelV0
- type PackageCleanupPolicyResourceModelV1
- type PackageCleanupPolicySearchCriteriaAPIModel
- type PredefinedValueAPIModel
- type PropertyAPIModel
- type PropertySetAPIModel
- type PropertySetResource
- func (r *PropertySetResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PropertySetResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PropertySetResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PropertySetResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PropertySetResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PropertySetResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PropertySetResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PropertySetResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PropertySetResourceModel
- type PropertySetsAPIModel
- type ProxiesAPIModel
- type ProxyAPIModel
- type ProxyResource
- func (r *ProxyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ProxyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ProxyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ProxyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ProxyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ProxyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ProxyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ProxyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r ProxyResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type ProxyResourceModel
- type RepositoryLayoutAPIModel
- type RepositoryLayoutResource
- func (r *RepositoryLayoutResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RepositoryLayoutResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RepositoryLayoutResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RepositoryLayoutResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RepositoryLayoutResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RepositoryLayoutResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RepositoryLayoutResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RepositoryLayoutResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r RepositoryLayoutResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type RepositoryLayoutResourceModel
- type RepositoryLayoutsAPIModel
- type SecurityLdapGroupSettings
- type SecurityLdapSettings
- type XmlLdapConfig
- type XmlLdapGroupConfig
Constants ¶
const ( PackageCleanupPolicyEndpointPath = "artifactory/api/cleanup/packages/policies/{policyKey}" PackageCleanupPolicyEnablementEndpointPath = "artifactory/api/cleanup/packages/policies/{policyKey}/enablement" )
const ConfigurationEndpoint = "artifactory/api/system/configuration"
const LdapEndpoint = "access/api/v1/ldap/settings/"
const LdapGroupEndpoint = "access/api/v1/ldap/groups/"
Variables ¶
This section is empty.
Functions ¶
func FindConfigurationById ¶
func FindConfigurationById[C Configuration](configurations []C, id string) *C
func NewBackupResource ¶
func NewLdapSettingResource ¶
func NewMailServerResource ¶
func NewPropertySetResource ¶
func NewProxyResource ¶
func SendConfigurationPatch ¶
SendConfigurationPatch updates system configuration using YAML data.
See https://www.jfrog.com/confluence/display/JFROG/Artifactory+YAML+Configuration
Types ¶
type ArtifactoryLdapGroupSettingResource ¶
type ArtifactoryLdapGroupSettingResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ArtifactoryLdapGroupSettingResource) Configure ¶
func (r *ArtifactoryLdapGroupSettingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryLdapGroupSettingResource) Create ¶
func (r *ArtifactoryLdapGroupSettingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryLdapGroupSettingResource) Delete ¶
func (r *ArtifactoryLdapGroupSettingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryLdapGroupSettingResource) ImportState ¶
func (r *ArtifactoryLdapGroupSettingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryLdapGroupSettingResource) Metadata ¶
func (r *ArtifactoryLdapGroupSettingResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryLdapGroupSettingResource) Read ¶
func (r *ArtifactoryLdapGroupSettingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryLdapGroupSettingResource) Schema ¶
func (r *ArtifactoryLdapGroupSettingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactoryLdapGroupSettingResource) Update ¶
func (r *ArtifactoryLdapGroupSettingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*ArtifactoryLdapGroupSettingResource) ValidateConfig ¶
func (r *ArtifactoryLdapGroupSettingResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ArtifactoryLdapGroupSettingResourceAPIModel ¶
type ArtifactoryLdapGroupSettingResourceAPIModel struct { Name string `json:"name"` EnabledLdap string `json:"enabled_ldap"` GroupBaseDn string `json:"group_base_dn"` GroupNameAttribute string `json:"group_name_attribute"` GroupMemberAttribute string `json:"group_member_attribute"` SubTree bool `json:"sub_tree"` ForceAttributeSearch bool `json:"force_attribute_search"` Filter string `json:"filter"` DescriptionAttribute string `json:"description_attribute"` Strategy string `json:"strategy"` }
ArtifactoryLdapGroupSettingResourceAPIModel describes the API data model.
type ArtifactoryLdapGroupSettingResourceModel ¶
type ArtifactoryLdapGroupSettingResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` EnabledLdap types.String `tfsdk:"enabled_ldap"` GroupBaseDn types.String `tfsdk:"group_base_dn"` GroupNameAttribute types.String `tfsdk:"group_name_attribute"` GroupMemberAttribute types.String `tfsdk:"group_member_attribute"` SubTree types.Bool `tfsdk:"sub_tree"` ForceAttributeSearch types.Bool `tfsdk:"force_attribute_search"` Filter types.String `tfsdk:"filter"` DescriptionAttribute types.String `tfsdk:"description_attribute"` Strategy types.String `tfsdk:"strategy"` }
ArtifactoryLdapGroupSettingResourceModel describes the Terraform resource data model to match the resource schema.
func (*ArtifactoryLdapGroupSettingResourceModel) ToState ¶
func (r *ArtifactoryLdapGroupSettingResourceModel) ToState(ctx context.Context, ldapGroup ArtifactoryLdapGroupSettingResourceAPIModel) diag.Diagnostics
type ArtifactoryLdapSettingResource ¶
type ArtifactoryLdapSettingResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ArtifactoryLdapSettingResource) Configure ¶
func (r *ArtifactoryLdapSettingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryLdapSettingResource) Create ¶
func (r *ArtifactoryLdapSettingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryLdapSettingResource) Delete ¶
func (r *ArtifactoryLdapSettingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryLdapSettingResource) ImportState ¶
func (r *ArtifactoryLdapSettingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryLdapSettingResource) Metadata ¶
func (r *ArtifactoryLdapSettingResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryLdapSettingResource) Read ¶
func (r *ArtifactoryLdapSettingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryLdapSettingResource) Schema ¶
func (r *ArtifactoryLdapSettingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactoryLdapSettingResource) Update ¶
func (r *ArtifactoryLdapSettingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ArtifactoryLdapSettingResourceAPIModel ¶
type ArtifactoryLdapSettingResourceAPIModel struct { Key string `json:"key"` Enabled bool `json:"enabled"` LdapUrl string `json:"ldap_url"` UserDnPattern string `json:"user_dn_pattern"` Search LdapSearchAPIModel `json:"search"` AutoCreateUser bool `json:"auto_create_user"` EmailAttribute string `json:"email_attribute"` LdapPoisoningProtection bool `json:"ldap_poisoning_protection"` AllowUserToAccessProfile bool `json:"allow_user_to_access_profile"` PagingSupportEnabled bool `json:"paging_support_enabled"` }
ArtifactoryLdapSettingResourceAPIModel describes the API data model.
type ArtifactoryLdapSettingResourceModel ¶
type ArtifactoryLdapSettingResourceModel struct { Id types.String `tfsdk:"id"` Key types.String `tfsdk:"key"` Enabled types.Bool `tfsdk:"enabled"` LdapUrl types.String `tfsdk:"ldap_url"` UserDnPattern types.String `tfsdk:"user_dn_pattern"` EmailAttribute types.String `tfsdk:"email_attribute"` AutoCreateUser types.Bool `tfsdk:"auto_create_user"` LdapPoisoningProtection types.Bool `tfsdk:"ldap_poisoning_protection"` AllowUserToAccessProfile types.Bool `tfsdk:"allow_user_to_access_profile"` PagingSupportEnabled types.Bool `tfsdk:"paging_support_enabled"` SearchFilter types.String `tfsdk:"search_filter"` SearchBase types.String `tfsdk:"search_base"` SearchSubTree types.Bool `tfsdk:"search_sub_tree"` ManagerDn types.String `tfsdk:"manager_dn"` ManagerPassword types.String `tfsdk:"manager_password"` }
ArtifactoryLdapSettingResourceModel describes the Terraform resource data model to match the resource schema.
func (*ArtifactoryLdapSettingResourceModel) ToState ¶
func (r *ArtifactoryLdapSettingResourceModel) ToState(ctx context.Context, ldap ArtifactoryLdapSettingResourceAPIModel) diag.Diagnostics
type BackupAPIModel ¶
type BackupAPIModel struct { Key string `xml:"key" yaml:"key"` CronExp string `xml:"cronExp" yaml:"cronExp"` Enabled bool `xml:"enabled" yaml:"enabled"` RetentionPeriodHours int64 `xml:"retentionPeriodHours" yaml:"retentionPeriodHours"` ExcludedRepositories *[]string `xml:"excludedRepositories>repositoryRef" yaml:"excludedRepositories"` CreateArchive bool `xml:"createArchive" yaml:"createArchive"` ExcludeNewRepositories bool `xml:"excludeNewRepositories" yaml:"excludeNewRepositories"` SendMailOnError bool `xml:"sendMailOnError" yaml:"sendMailOnError"` VerifyDiskSpace bool `xml:"precalculate" yaml:"precalculate"` ExportMissionControl bool `xml:"exportMissionControl" yaml:"exportMissionControl"` }
func (BackupAPIModel) Id ¶
func (m BackupAPIModel) Id() string
type BackupResource ¶
type BackupResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*BackupResource) Configure ¶
func (r *BackupResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BackupResource) Create ¶
func (r *BackupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BackupResource) Delete ¶
func (r *BackupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BackupResource) ImportState ¶
func (r *BackupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*BackupResource) Metadata ¶
func (r *BackupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BackupResource) Read ¶
func (r *BackupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BackupResource) Schema ¶
func (r *BackupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BackupResource) Update ¶
func (r *BackupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BackupResourceModel ¶
type BackupResourceModel struct { Key types.String `tfsdk:"key"` Enabled types.Bool `tfsdk:"enabled"` CronExp types.String `tfsdk:"cron_exp"` RetentionPeriodHours types.Int64 `tfsdk:"retention_period_hours"` ExcludedRepositories types.List `tfsdk:"excluded_repositories"` CreateArchive types.Bool `tfsdk:"create_archive"` ExcludeNewRepositories types.Bool `tfsdk:"exclude_new_repositories"` SendMailOnError types.Bool `tfsdk:"send_mail_on_error"` VerifyDiskSpace types.Bool `tfsdk:"verify_disk_space"` ExportMissionControl types.Bool `tfsdk:"export_mission_control"` }
func (*BackupResourceModel) FromAPIModel ¶
func (r *BackupResourceModel) FromAPIModel(ctx context.Context, backup *BackupAPIModel) diag.Diagnostics
type Backups ¶
type Backups struct {
BackupArr []BackupAPIModel `xml:"backups>backup" yaml:"backup"`
}
type Configuration ¶
type Configuration interface {
Id() string
}
type GeneralSecurityAPIModel ¶
type GeneralSecurityAPIModel struct {
GeneralSettingsAPIModel `yaml:"security" json:"security"`
}
type GeneralSecurityResource ¶
type GeneralSecurityResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*GeneralSecurityResource) Configure ¶
func (r *GeneralSecurityResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GeneralSecurityResource) Create ¶
func (r *GeneralSecurityResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GeneralSecurityResource) Delete ¶
func (r *GeneralSecurityResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GeneralSecurityResource) ImportState ¶
func (r *GeneralSecurityResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*GeneralSecurityResource) Metadata ¶
func (r *GeneralSecurityResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GeneralSecurityResource) Read ¶
func (r *GeneralSecurityResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GeneralSecurityResource) Schema ¶
func (r *GeneralSecurityResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GeneralSecurityResource) Update ¶
func (r *GeneralSecurityResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GeneralSettingsAPIModel ¶
type GeneralSettingsAPIModel struct {
AnonAccessEnabled bool `yaml:"anonAccessEnabled" json:"anonAccessEnabled"`
}
type LdapGroupSetting ¶
type LdapGroupSetting struct { Name string `xml:"name" yaml:"name"` EnabledLdap string `hcl:"ldap_setting_key" xml:"enabledLdap" yaml:"enabledLdap"` GroupBaseDn string `xml:"groupBaseDn" yaml:"groupBaseDn"` GroupNameAttribute string `xml:"groupNameAttribute" yaml:"groupNameAttribute"` GroupMemberAttribute string `xml:"groupMemberAttribute" yaml:"groupMemberAttribute"` SubTree bool `xml:"subTree" yaml:"subTree"` Filter string `xml:"filter" yaml:"filter"` DescriptionAttribute string `xml:"descriptionAttribute" yaml:"descriptionAttribute"` Strategy string `xml:"strategy" yaml:"strategy"` }
func (LdapGroupSetting) Id ¶
func (l LdapGroupSetting) Id() string
type LdapGroupSettings ¶
type LdapGroupSettings struct {
LdapGroupSettingArr []LdapGroupSetting `xml:"ldapGroupSetting" yaml:"ldapGroupSetting"`
}
type LdapSearchAPIModel ¶
type LdapSearchType ¶
type LdapSearchType struct { SearchSubTree bool `xml:"searchSubTree" yaml:"searchSubTree" ` SearchFilter string `xml:"searchFilter" yaml:"searchFilter"` SearchBase string `xml:"searchBase" yaml:"searchBase"` ManagerDn string `xml:"managerDn" yaml:"managerDn"` ManagerPassword string `xml:"managerPassword" yaml:"managerPassword"` }
type LdapSetting ¶
type LdapSetting struct { Key string `xml:"key" yaml:"key"` Enabled bool `xml:"enabled" yaml:"enabled"` LdapUrl string `xml:"ldapUrl" yaml:"ldapUrl"` UserDnPattern string `xml:"userDnPattern" yaml:"userDnPattern"` EmailAttribute string `xml:"emailAttribute" yaml:"emailAttribute"` AutoCreateUser bool `xml:"autoCreateUser" yaml:"autoCreateUser"` LdapPoisoningProtection bool `xml:"ldapPoisoningProtection" yaml:"ldapPoisoningProtection"` AllowUserToAccessProfile bool `xml:"allowUserToAccessProfile" yaml:"allowUserToAccessProfile"` PagingSupportEnabled bool `xml:"pagingSupportEnabled" yaml:"pagingSupportEnabled"` Search LdapSearchType `xml:"search" yaml:"search"` }
func (LdapSetting) Id ¶
func (l LdapSetting) Id() string
type LdapSettings ¶
type LdapSettings struct {
LdapSettingArr []LdapSetting `xml:"ldapSetting" yaml:"ldapSetting"`
}
type MailServer ¶
type MailServer struct {
Server *MailServerAPIModel `xml:"mailServer"`
}
type MailServerAPIModel ¶
type MailServerAPIModel struct { Enabled bool `xml:"enabled" yaml:"enabled"` ArtifactoryURL string `xml:"artifactoryUrl" yaml:"artifactoryUrl"` From string `xml:"from" yaml:"from"` Host string `xml:"host" yaml:"host"` Username string `xml:"username" yaml:"username"` Password string `xml:"password" yaml:"password"` Port int64 `xml:"port" yaml:"port"` SubjectPrefix string `xml:"subjectPrefix" yaml:"subjectPrefix"` UseSSL bool `xml:"ssl" yaml:"ssl"` UseTLS bool `xml:"tls" yaml:"tls"` }
type MailServerResource ¶
type MailServerResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*MailServerResource) Configure ¶
func (r *MailServerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*MailServerResource) Create ¶
func (r *MailServerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*MailServerResource) Delete ¶
func (r *MailServerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*MailServerResource) ImportState ¶
func (r *MailServerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*MailServerResource) Metadata ¶
func (r *MailServerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*MailServerResource) Read ¶
func (r *MailServerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*MailServerResource) Schema ¶
func (r *MailServerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*MailServerResource) Update ¶
func (r *MailServerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MailServerResourceModel ¶
type MailServerResourceModel struct { Enabled types.Bool `tfsdk:"enabled"` ArtifactoryURL types.String `tfsdk:"artifactory_url"` From types.String `tfsdk:"from"` Host types.String `tfsdk:"host"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` Port types.Int64 `tfsdk:"port"` SubjectPrefix types.String `tfsdk:"subject_prefix"` UseSSL types.Bool `tfsdk:"use_ssl"` UseTLS types.Bool `tfsdk:"use_tls"` }
func (*MailServerResourceModel) FromAPIModel ¶
func (r *MailServerResourceModel) FromAPIModel(ctx context.Context, mailServer *MailServerAPIModel) diag.Diagnostics
func (*MailServerResourceModel) ToAPIModel ¶
func (r *MailServerResourceModel) ToAPIModel(ctx context.Context, mailServer *MailServerAPIModel) diag.Diagnostics
type OauthProviderSettings ¶
type OauthProviderSettings struct { Name string `json:"name"` Enabled bool `yaml:"enabled" json:"enabled"` Type string `yaml:"providerType" json:"providerType"` ClientId string `yaml:"id" json:"id"` ClientSecret string `yaml:"secret" json:"secret"` ApiUrl string `yaml:"apiUrl" json:"apiUrl"` AuthUrl string `yaml:"authUrl" json:"authUrl"` TokenUrl string `yaml:"tokenUrl" json:"tokenUrl"` }
type OauthSecurity ¶
type OauthSecurity struct {
Oauth OauthSettingsWrapper `yaml:"security"`
}
type OauthSettings ¶
type OauthSettings struct { EnableIntegration bool `yaml:"enableIntegration" json:"enabled"` PersistUsers bool `yaml:"persistUsers" json:"persistUsers"` AllowUserToAccessProfile bool `yaml:"allowUserToAccessProfile" json:"allowUserToAccessProfile"` OauthProvidersSettings map[string]OauthProviderSettings `yaml:"oauthProvidersSettings"` AvailableTypes []OauthType `json:"availableTypes"` Providers []OauthProviderSettings `json:"providers"` }
type OauthSettingsWrapper ¶
type OauthSettingsWrapper struct {
Settings OauthSettings `yaml:"oauthSettings"`
}
type PackageCleanupPolicyAPIModel ¶
type PackageCleanupPolicyAPIModel struct { Key string `json:"key"` Description string `json:"description,omitempty"` CronExpression string `json:"cronExp"` DurationInMinutes int64 `json:"durationInMinutes"` Enabled bool `json:"enabled,omitempty"` SkipTrashcan bool `json:"skipTrashcan"` ProjectKey string `json:"projectKey"` SearchCriteria PackageCleanupPolicySearchCriteriaAPIModel `json:"searchCriteria"` }
type PackageCleanupPolicyEnablementAPIModel ¶
type PackageCleanupPolicyEnablementAPIModel struct {
Enabled bool `json:"enabled"`
}
type PackageCleanupPolicyResource ¶
type PackageCleanupPolicyResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*PackageCleanupPolicyResource) Configure ¶
func (r *PackageCleanupPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PackageCleanupPolicyResource) Create ¶
func (r *PackageCleanupPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PackageCleanupPolicyResource) Delete ¶
func (r *PackageCleanupPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PackageCleanupPolicyResource) ImportState ¶
func (r *PackageCleanupPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*PackageCleanupPolicyResource) Metadata ¶
func (r *PackageCleanupPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PackageCleanupPolicyResource) Read ¶
func (r *PackageCleanupPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PackageCleanupPolicyResource) Schema ¶
func (r *PackageCleanupPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PackageCleanupPolicyResource) Update ¶
func (r *PackageCleanupPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*PackageCleanupPolicyResource) UpgradeState ¶
func (r *PackageCleanupPolicyResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
type PackageCleanupPolicyResourceModelV0 ¶
type PackageCleanupPolicyResourceModelV0 struct { Key types.String `tfsdk:"key"` Description types.String `tfsdk:"description"` CronExpression types.String `tfsdk:"cron_expression"` DurationInMinutes types.Int64 `tfsdk:"duration_in_minutes"` Enabled types.Bool `tfsdk:"enabled"` SkipTrashcan types.Bool `tfsdk:"skip_trashcan"` SearchCriteria types.Object `tfsdk:"search_criteria"` }
type PackageCleanupPolicyResourceModelV1 ¶
type PackageCleanupPolicyResourceModelV1 struct { PackageCleanupPolicyResourceModelV0 ProjectKey types.String `tfsdk:"project_key"` }
type PackageCleanupPolicySearchCriteriaAPIModel ¶
type PackageCleanupPolicySearchCriteriaAPIModel struct { PackageTypes []string `json:"packageTypes"` Repos []string `json:"repos"` ExcludedRepos *[]string `json:"excludedRepos,omitempty"` IncludedPackages []string `json:"includedPackages"` ExcludedPackages *[]string `json:"excludedPackages,omitempty"` IncludeAllProjects *bool `json:"includeAllProjects,omitempty"` IncludedProjects *[]string `json:"includedProjects,omitempty"` CreatedBeforeInMonths *int64 `json:"createdBeforeInMonths,omitempty"` LastDownloadedBeforeInMonths *int64 `json:"lastDownloadedBeforeInMonths,omitempty"` KeepLastNVerions *int64 `json:"keepLastNVerions,omitempty"` }
type PredefinedValueAPIModel ¶
type PropertyAPIModel ¶
type PropertyAPIModel struct { Name string `xml:"name" yaml:"-"` PredefinedValues []PredefinedValueAPIModel `xml:"predefinedValues>predefinedValue" yaml:"predefinedValues"` ClosedPredefinedValue bool `xml:"closedPredefinedValues" yaml:"closedPredefinedValues"` MultipleChoice bool `xml:"multipleChoice" yaml:"multipleChoice"` }
type PropertySetAPIModel ¶
type PropertySetAPIModel struct { Name string `xml:"name" yaml:"-"` Visible bool `xml:"visible" yaml:"visible"` Properties []PropertyAPIModel `xml:"properties>property" yaml:"properties"` }
func (PropertySetAPIModel) Id ¶
func (m PropertySetAPIModel) Id() string
type PropertySetResource ¶
type PropertySetResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*PropertySetResource) Configure ¶
func (r *PropertySetResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PropertySetResource) Create ¶
func (r *PropertySetResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PropertySetResource) Delete ¶
func (r *PropertySetResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PropertySetResource) ImportState ¶
func (r *PropertySetResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*PropertySetResource) Metadata ¶
func (r *PropertySetResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PropertySetResource) Read ¶
func (r *PropertySetResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PropertySetResource) Schema ¶
func (r *PropertySetResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PropertySetResource) Update ¶
func (r *PropertySetResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PropertySetsAPIModel ¶
type PropertySetsAPIModel struct {
PropertySets []PropertySetAPIModel `xml:"propertySets>propertySet" yaml:"propertySet"`
}
type ProxiesAPIModel ¶
type ProxiesAPIModel struct {
Proxies []ProxyAPIModel `xml:"proxies>proxy" yaml:"proxy"`
}
type ProxyAPIModel ¶
type ProxyAPIModel struct { Key string `xml:"key" yaml:"-"` Host string `xml:"host" yaml:"host"` Port int64 `xml:"port" yaml:"port"` Username string `xml:"username" yaml:"username"` Password string `xml:"password" yaml:"password"` NtHost string `xml:"ntHost" yaml:"ntHost"` NtDomain string `xml:"domain" yaml:"domain"` PlatformDefault bool `xml:"platformDefault" yaml:"platformDefault"` RedirectedToHosts string `xml:"redirectedToHosts" yaml:"redirectedToHosts"` Services string `xml:"services" yaml:"services"` }
func (ProxyAPIModel) Id ¶
func (p ProxyAPIModel) Id() string
type ProxyResource ¶
type ProxyResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ProxyResource) Configure ¶
func (r *ProxyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ProxyResource) Create ¶
func (r *ProxyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ProxyResource) Delete ¶
func (r *ProxyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ProxyResource) ImportState ¶
func (r *ProxyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ProxyResource) Metadata ¶
func (r *ProxyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ProxyResource) Read ¶
func (r *ProxyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ProxyResource) Schema ¶
func (r *ProxyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ProxyResource) Update ¶
func (r *ProxyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (ProxyResource) ValidateConfig ¶
func (r ProxyResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ProxyResourceModel ¶
type ProxyResourceModel struct { Key types.String `tfsdk:"key"` Host types.String `tfsdk:"host"` Port types.Int64 `tfsdk:"port"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` NtHost types.String `tfsdk:"nt_host"` NtDomain types.String `tfsdk:"nt_domain"` PlatformDefault types.Bool `tfsdk:"platform_default"` RedirectedToHosts types.Set `tfsdk:"redirect_to_hosts"` Services types.Set `tfsdk:"services"` }
func (*ProxyResourceModel) FromAPIModel ¶
func (r *ProxyResourceModel) FromAPIModel(ctx context.Context, proxy *ProxyAPIModel) diag.Diagnostics
type RepositoryLayoutAPIModel ¶
type RepositoryLayoutAPIModel struct { Name string `xml:"name" yaml:"name"` ArtifactPathPattern string `xml:"artifactPathPattern" yaml:"artifactPathPattern"` DescriptorPathPattern string `xml:"descriptorPathPattern" yaml:"descriptorPathPattern"` DistinctiveDescriptorPathPattern bool `xml:"distinctiveDescriptorPathPattern" yaml:"distinctiveDescriptorPathPattern"` FileIntegrationRevisionRegExp string `xml:"fileIntegrationRevisionRegExp" yaml:"fileIntegrationRevisionRegExp"` FolderIntegrationRevisionRegExp string `xml:"folderIntegrationRevisionRegExp" yaml:"folderIntegrationRevisionRegExp"` }
func (RepositoryLayoutAPIModel) Id ¶
func (m RepositoryLayoutAPIModel) Id() string
type RepositoryLayoutResource ¶
type RepositoryLayoutResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*RepositoryLayoutResource) Configure ¶
func (r *RepositoryLayoutResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RepositoryLayoutResource) Create ¶
func (r *RepositoryLayoutResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RepositoryLayoutResource) Delete ¶
func (r *RepositoryLayoutResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RepositoryLayoutResource) ImportState ¶
func (r *RepositoryLayoutResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*RepositoryLayoutResource) Metadata ¶
func (r *RepositoryLayoutResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RepositoryLayoutResource) Read ¶
func (r *RepositoryLayoutResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RepositoryLayoutResource) Schema ¶
func (r *RepositoryLayoutResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RepositoryLayoutResource) Update ¶
func (r *RepositoryLayoutResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (RepositoryLayoutResource) ValidateConfig ¶
func (r RepositoryLayoutResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type RepositoryLayoutResourceModel ¶
type RepositoryLayoutResourceModel struct { Name types.String `tfsdk:"name"` ArtifactPathPattern types.String `tfsdk:"artifact_path_pattern"` DescriptorPathPattern types.String `tfsdk:"descriptor_path_pattern"` DistinctiveDescriptorPathPattern types.Bool `tfsdk:"distinctive_descriptor_path_pattern"` FileIntegrationRevisionRegExp types.String `tfsdk:"file_integration_revision_regexp"` FolderIntegrationRevisionRegExp types.String `tfsdk:"folder_integration_revision_regexp"` }
type RepositoryLayoutsAPIModel ¶
type RepositoryLayoutsAPIModel struct {
Layouts []RepositoryLayoutAPIModel `xml:"repoLayouts>repoLayout" yaml:"repoLayout"`
}
type SecurityLdapGroupSettings ¶
type SecurityLdapGroupSettings struct {
LdapGroupSettings LdapGroupSettings `xml:"ldapGroupSettings"`
}
type SecurityLdapSettings ¶
type SecurityLdapSettings struct {
LdapSettings LdapSettings `xml:"ldapSettings"`
}
type XmlLdapConfig ¶
type XmlLdapConfig struct { XMLName xml.Name `xml:"config"` Security SecurityLdapSettings `xml:"security"` }
type XmlLdapGroupConfig ¶
type XmlLdapGroupConfig struct { XMLName xml.Name `xml:"config"` Security SecurityLdapGroupSettings `xml:"security"` }
Source Files ¶
- configuration.go
- resource_artifactory_backup.go
- resource_artifactory_general_security.go
- resource_artifactory_ldap_group_setting.go
- resource_artifactory_ldap_group_setting_v2.go
- resource_artifactory_ldap_setting.go
- resource_artifactory_ldap_setting_v2.go
- resource_artifactory_mail_server.go
- resource_artifactory_oauth_settings.go
- resource_artifactory_package_cleanup_policy.go
- resource_artifactory_property_set.go
- resource_artifactory_proxy.go
- resource_artifactory_repository_layout.go
- resource_artifactory_saml_settings.go