configuration

package
v6.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConfigurationById added in v6.20.0

func FindConfigurationById[C Configuration](configurations []C, id string) *C

func ResourceArtifactoryBackup

func ResourceArtifactoryBackup() *schema.Resource

func ResourceArtifactoryGeneralSecurity

func ResourceArtifactoryGeneralSecurity() *schema.Resource

func ResourceArtifactoryLdapGroupSetting

func ResourceArtifactoryLdapGroupSetting() *schema.Resource

func ResourceArtifactoryLdapSetting

func ResourceArtifactoryLdapSetting() *schema.Resource

func ResourceArtifactoryOauthSettings

func ResourceArtifactoryOauthSettings() *schema.Resource

func ResourceArtifactoryPropertySet added in v6.16.0

func ResourceArtifactoryPropertySet() *schema.Resource

func ResourceArtifactoryProxy added in v6.20.0

func ResourceArtifactoryProxy() *schema.Resource

func ResourceArtifactoryRepositoryLayout added in v6.14.0

func ResourceArtifactoryRepositoryLayout() *schema.Resource

func ResourceArtifactorySamlSettings

func ResourceArtifactorySamlSettings() *schema.Resource

func SendConfigurationPatch

func SendConfigurationPatch(content []byte, m interface{}) error
SendConfigurationPatch updates system configuration using YAML data.

See https://www.jfrog.com/confluence/display/JFROG/Artifactory+YAML+Configuration

Types

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

func (Backup) Id added in v6.20.0

func (b Backup) Id() string

type Backups

type Backups struct {
	BackupArr []Backup `xml:"backups>backup" yaml:"backup"`
}

type Configuration added in v6.20.0

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 added in v6.14.0

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

func (Layout) Id added in v6.20.0

func (l Layout) Id() string

type Layouts added in v6.14.0

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 added in v6.22.3

func (l LdapGroupSetting) Id() string

type LdapGroupSettings

type LdapGroupSettings struct {
	LdapGroupSettingArr []LdapGroupSetting `xml:"ldapGroupSetting" yaml:"ldapGroupSetting"`
}

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 added in v6.22.3

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 OauthType

type OauthType struct {
	DisplayName     string
	Type            string
	MandatoryFields []string
	FieldHolders    []string
	FieldValues     []string
}

type PredefinedValue added in v6.16.0

type PredefinedValue struct {
	Name         string `xml:"value" yaml:"-"`
	DefaultValue bool   `xml:"defaultValue" yaml:"defaultValue"`
}

type Property added in v6.16.0

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 added in v6.16.0

type PropertySet struct {
	Name       string     `xml:"name" yaml:"-"`
	Visible    bool       `xml:"visible" yaml:"visible"`
	Properties []Property `xml:"properties>property" yaml:"properties"`
}

func (PropertySet) Id added in v6.20.0

func (p PropertySet) Id() string

type PropertySets added in v6.16.0

type PropertySets struct {
	PropertySets []PropertySet `xml:"propertySets>propertySet" yaml:"propertySet"`
}

type Proxies added in v6.20.0

type Proxies struct {
	Proxies []Proxy `xml:"proxies>proxy" yaml:"proxy"`
}

type Proxy added in v6.20.0

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

func (Proxy) Id added in v6.20.0

func (p Proxy) Id() string

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

Jump to

Keyboard shortcuts

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