Documentation ¶
Index ¶
- Constants
- func FindConfigurationById[C Configuration](configurations []C, id string) *C
- func NewLdapGroupSettingResource() resource.Resource
- func NewLdapSettingResource() resource.Resource
- func ResourceArtifactoryBackup() *schema.Resource
- func ResourceArtifactoryGeneralSecurity() *schema.Resource
- func ResourceArtifactoryLdapGroupSetting() *schema.Resource
- func ResourceArtifactoryLdapSetting() *schema.Resource
- func ResourceArtifactoryOauthSettings() *schema.Resource
- func ResourceArtifactoryPropertySet() *schema.Resource
- func ResourceArtifactoryProxy() *schema.Resource
- func ResourceArtifactoryRepositoryLayout() *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)
- func (r *ArtifactoryLdapSettingResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type ArtifactoryLdapSettingResourceAPIModel
- type ArtifactoryLdapSettingResourceModel
- type Backup
- type Backups
- type Configuration
- type GeneralSecurity
- type GeneralSettings
- type Layout
- type Layouts
- type LdapGroupSetting
- type LdapGroupSettings
- type LdapSearchAPIModel
- type LdapSearchType
- type LdapSetting
- type LdapSettings
- type OauthProviderSettings
- type OauthSecurity
- type OauthSettings
- type OauthSettingsWrapper
- type OauthType
- type PredefinedValue
- type Property
- type PropertySet
- type PropertySets
- type Proxies
- type Proxy
- type SamlSecurity
- type SamlSettings
- type SamlSettingsWrapper
- type SecurityLdapGroupSettings
- type SecurityLdapSettings
- type XmlLdapConfig
- type XmlLdapGroupConfig
Constants ¶
View Source
const LdapEndpoint = "access/api/v1/ldap/settings/"
View Source
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 NewLdapGroupSettingResource ¶ added in v8.4.0
func NewLdapSettingResource ¶ added in v8.4.0
func SendConfigurationPatch ¶
SendConfigurationPatch updates system configuration using YAML data.
See https://www.jfrog.com/confluence/display/JFROG/Artifactory+YAML+Configuration
Types ¶
type ArtifactoryLdapGroupSettingResource ¶ added in v8.4.0
type ArtifactoryLdapGroupSettingResource struct {
ProviderData utilsdk.ProvderMetadata
}
func (*ArtifactoryLdapGroupSettingResource) Configure ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryLdapGroupSettingResource) Create ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryLdapGroupSettingResource) Delete ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryLdapGroupSettingResource) ImportState ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryLdapGroupSettingResource) Metadata ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryLdapGroupSettingResource) Read ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryLdapGroupSettingResource) Schema ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactoryLdapGroupSettingResource) Update ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*ArtifactoryLdapGroupSettingResource) ValidateConfig ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ArtifactoryLdapGroupSettingResourceAPIModel ¶ added in v8.4.0
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 ¶ added in v8.4.0
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 ¶ added in v8.4.0
func (r *ArtifactoryLdapGroupSettingResourceModel) ToState(ctx context.Context, ldapGroup ArtifactoryLdapGroupSettingResourceAPIModel) diag.Diagnostics
type ArtifactoryLdapSettingResource ¶ added in v8.4.0
type ArtifactoryLdapSettingResource struct {
ProviderData utilsdk.ProvderMetadata
}
func (*ArtifactoryLdapSettingResource) Configure ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactoryLdapSettingResource) Create ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactoryLdapSettingResource) Delete ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactoryLdapSettingResource) ImportState ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ArtifactoryLdapSettingResource) Metadata ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactoryLdapSettingResource) Read ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactoryLdapSettingResource) Schema ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactoryLdapSettingResource) Update ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*ArtifactoryLdapSettingResource) ValidateConfig ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ArtifactoryLdapSettingResourceAPIModel ¶ added in v8.4.0
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 ¶ added in v8.4.0
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 ¶ added in v8.4.0
func (r *ArtifactoryLdapSettingResourceModel) ToState(ctx context.Context, ldap ArtifactoryLdapSettingResourceAPIModel) diag.Diagnostics
type Backup ¶
type Backup struct { Key string `xml:"key" yaml:"key"` CronExp string `xml:"cronExp" yaml:"cronExp"` Enabled bool `xml:"enabled" yaml:"enabled"` RetentionPeriodHours int `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"` }
type Configuration ¶
type Configuration interface {
Id() string
}
type GeneralSecurity ¶
type GeneralSecurity struct {
GeneralSettings `yaml:"security" json:"security"`
}
type GeneralSettings ¶
type GeneralSettings struct {
AnonAccessEnabled bool `yaml:"anonAccessEnabled" json:"anonAccessEnabled"`
}
type Layout ¶
type Layout struct { Name string `hcl:"name" xml:"name" yaml:"name"` ArtifactPathPattern string `hcl:"artifact_path_pattern" xml:"artifactPathPattern" yaml:"artifactPathPattern"` DistinctiveDescriptorPathPattern bool `hcl:"distinctive_descriptor_path_pattern" xml:"distinctiveDescriptorPathPattern" yaml:"distinctiveDescriptorPathPattern"` DescriptorPathPattern string `hcl:"descriptor_path_pattern" xml:"descriptorPathPattern" yaml:"descriptorPathPattern"` FolderIntegrationRevisionRegExp string `hcl:"folder_integration_revision_regexp" xml:"folderIntegrationRevisionRegExp" yaml:"folderIntegrationRevisionRegExp"` FileIntegrationRevisionRegExp string `hcl:"file_integration_revision_regexp" xml:"fileIntegrationRevisionRegExp" yaml:"fileIntegrationRevisionRegExp"` }
type Layouts ¶
type Layouts struct {
Layouts []Layout `xml:"repoLayouts>repoLayout" yaml:"repoLayout"`
}
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 ¶ added in v8.4.0
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 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 PredefinedValue ¶
type Property ¶
type Property struct { Name string `xml:"name" yaml:"-"` PredefinedValues []PredefinedValue `xml:"predefinedValues>predefinedValue" yaml:"predefinedValues"` ClosedPredefinedValue bool `xml:"closedPredefinedValues" yaml:"closedPredefinedValues"` MultipleChoice bool `xml:"multipleChoice" yaml:"multipleChoice"` }
type PropertySet ¶
type PropertySet struct { Name string `xml:"name" yaml:"-"` Visible bool `xml:"visible" yaml:"visible"` Properties []Property `xml:"properties>property" yaml:"properties"` }
func (PropertySet) Id ¶
func (p PropertySet) Id() string
type PropertySets ¶
type PropertySets struct {
PropertySets []PropertySet `xml:"propertySets>propertySet" yaml:"propertySet"`
}
type Proxy ¶
type Proxy struct { Key string `xml:"key" yaml:"-"` Host string `xml:"host" yaml:"host"` Port int `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"` }
type SamlSecurity ¶
type SamlSecurity struct {
Saml SamlSettingsWrapper `yaml:"security"`
}
type SamlSettings ¶
type SamlSettings struct { EnableIntegration bool `yaml:"enableIntegration" json:"enableIntegration"` Certificate string `yaml:"certificate" json:"certificate"` EmailAttribute string `yaml:"emailAttribute" json:"emailAttribute"` GroupAttribute string `yaml:"groupAttribute" json:"groupAttribute"` LoginUrl string `yaml:"loginUrl" json:"loginUrl"` LogoutUrl string `yaml:"logoutUrl" json:"logoutUrl"` NoAutoUserCreation bool `yaml:"noAutoUserCreation" json:"noAutoUserCreation"` ServiceProviderName string `yaml:"serviceProviderName" json:"serviceProviderName"` AllowUserToAccessProfile bool `yaml:"allowUserToAccessProfile" json:"allowUserToAccessProfile"` AutoRedirect bool `yaml:"autoRedirect" json:"autoRedirect"` SyncGroups bool `yaml:"syncGroups" json:"syncGroups"` VerifyAudienceRestriction bool `yaml:"verifyAudienceRestriction" json:"verifyAudienceRestriction"` UseEncryptedAssertion bool `yaml:"useEncryptedAssertion" json:"useEncryptedAssertion"` }
type SamlSettingsWrapper ¶
type SamlSettingsWrapper struct {
Settings SamlSettings `yaml:"samlSettings"`
}
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_oauth_settings.go
- resource_artifactory_property_set.go
- resource_artifactory_proxy.go
- resource_artifactory_repository_layout.go
- resource_artifactory_saml_settings.go
Click to show internal directories.
Click to hide internal directories.