Documentation
¶
Index ¶
- Constants
- Variables
- func AddAuthToResty(client *resty.Client, apiKey, accessToken string) (*resty.Client, error)
- func BoolPtr(v bool) *bool
- func BuildResty(URL, version string) (*resty.Client, error)
- func CastToInterfaceArr(arr []string) []interface{}
- func CastToStringArr(arr []interface{}) []string
- func FormatCommaSeparatedString(thing interface{}) string
- func GetDefaultRepoLayoutRef(repositoryType string, packageType string) func() (interface{}, error)
- func MergeSchema(schemata ...map[string]*schema.Schema) map[string]*schema.Schema
- func NeverRetry(response *resty.Response, err error) bool
- func RandBool() bool
- func RandSelect(items ...interface{}) interface{}
- func RandomInt() int
- func RepoLayoutRefSchemaOverrideValidator(_ interface{}, _ cty.Path) diag.Diagnostics
- func RetryOnMergeError(response *resty.Response, _r error) bool
- func ValidateCron(value interface{}, key string) (ws []string, es []error)
- func ValidateIsEmail(address interface{}, _ cty.Path) diag.Diagnostics
- func ValidateLdapDn(value interface{}, _ string) ([]string, []error)
- func ValidateLdapFilter(value interface{}, _ string) ([]string, []error)
- func ValidateLowerCase(value interface{}, key string) (ws []string, es []error)
- func VerifyKeyPair(id string, request *resty.Request) (*resty.Response, error)
- type HclPredicate
- type Lens
- type ResourceData
- func (d *ResourceData) GetBool(key string, onlyIfChanged bool) bool
- func (d *ResourceData) GetBoolRef(key string, onlyIfChanged bool) *bool
- func (d *ResourceData) GetInt(key string, onlyIfChanged bool) int
- func (d *ResourceData) GetList(key string) []string
- func (d *ResourceData) GetSet(key string) []string
- func (d *ResourceData) GetString(key string, onlyIfChanged bool) string
- type Schema
- type SupportedRepoClasses
Constants ¶
View Source
const ( CertificateEndpoint = "artifactory/api/system/security/certificates/" KeypairEndPoint = "artifactory/api/security/keypair/" )
Variables ¶
View Source
var CommaSeperatedList = validation.ToDiagFunc( validation.StringMatch(regexp.MustCompile(`.+(?:,.+)*`), "must be comma separated string"), )
View Source
var GradleLikeRepoTypes = []string{
"gradle",
"sbt",
"ivy",
}
View Source
var ProjectKeyValidator = validation.ToDiagFunc( validation.StringMatch(regexp.MustCompile(`^[a-z0-9]{3,10}$`), "project_key must be 3 - 10 lowercase alphanumeric characters"), )
Functions ¶
func AddAuthToResty ¶
func BuildResty ¶
func CastToInterfaceArr ¶
func CastToInterfaceArr(arr []string) []interface{}
func CastToStringArr ¶
func CastToStringArr(arr []interface{}) []string
func FormatCommaSeparatedString ¶
func FormatCommaSeparatedString(thing interface{}) string
func GetDefaultRepoLayoutRef ¶ added in v6.5.2
Return the default repo layout by Repository Type & Package Type
func MergeSchema ¶
func NeverRetry ¶
func RandSelect ¶
func RandSelect(items ...interface{}) interface{}
func RepoLayoutRefSchemaOverrideValidator ¶
func RepoLayoutRefSchemaOverrideValidator(_ interface{}, _ cty.Path) diag.Diagnostics
func RetryOnMergeError ¶ added in v6.5.2
func ValidateCron ¶
func ValidateIsEmail ¶
func ValidateIsEmail(address interface{}, _ cty.Path) diag.Diagnostics
func ValidateLdapDn ¶
func ValidateLdapFilter ¶
func ValidateLowerCase ¶
func VerifyKeyPair ¶ added in v6.5.2
Types ¶
type HclPredicate ¶
func SchemaHasKey ¶
func SchemaHasKey(skeema map[string]*schema.Schema) HclPredicate
type ResourceData ¶
type ResourceData struct{ *schema.ResourceData }
func (*ResourceData) GetBoolRef ¶
func (d *ResourceData) GetBoolRef(key string, onlyIfChanged bool) *bool
func (*ResourceData) GetList ¶
func (d *ResourceData) GetList(key string) []string
func (*ResourceData) GetSet ¶
func (d *ResourceData) GetSet(key string) []string
type SupportedRepoClasses ¶ added in v6.5.2
Click to show internal directories.
Click to hide internal directories.