Documentation ¶
Index ¶
- func CheckArtifactoryLicense(client *resty.Client, licenseTypesToCheck ...string) error
- func CheckEnvVars(vars []string, dv string) string
- func CheckVersion(versionToCheck string, supportedVersion string) (bool, error)
- func ExecuteTemplate(name, temp string, fields interface{}) string
- func GetArtifactoryVersion(client *resty.Client) (string, error)
- func GetXrayVersion(client *resty.Client) (string, error)
- func OIDCTokenExchange(ctx context.Context, client *resty.Client, providerName string) (string, error)
- func SendUsage(ctx context.Context, req *resty.Request, productId string, ...)
- func SendUsageResourceCreate(ctx context.Context, req *resty.Request, productId, resourceName string)
- func SendUsageResourceDelete(ctx context.Context, req *resty.Request, productId, resourceName string)
- func SendUsageResourceRead(ctx context.Context, req *resty.Request, productId, resourceName string)
- func SendUsageResourceUpdate(ctx context.Context, req *resty.Request, productId, resourceName string)
- type Feature
- type Identifiable
- type OIDCAccessTokenRequest
- type OIDCAccessTokenResponse
- type ProviderMetadata
- type UsageStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckArtifactoryLicense ¶ added in v0.5.0
func CheckEnvVars ¶ added in v1.20.3
func CheckVersion ¶ added in v1.12.0
func ExecuteTemplate ¶ added in v1.1.0
func GetArtifactoryVersion ¶ added in v1.14.0
func GetXrayVersion ¶ added in v1.20.3
func OIDCTokenExchange ¶ added in v1.23.0
func OIDCTokenExchange(ctx context.Context, client *resty.Client, providerName string) (string, error)
OIDCTokenExchange use TFC_WORKLOAD_IDENTITY_TOKEN env var value to exchange for a access token using OIDC provider configured on JFrog platform
func SendUsageResourceCreate ¶ added in v1.21.0
func SendUsageResourceDelete ¶ added in v1.21.0
func SendUsageResourceRead ¶ added in v1.21.0
func SendUsageResourceUpdate ¶ added in v1.21.0
Types ¶
type Identifiable ¶ added in v1.1.0
type Identifiable interface {
Id() string
}
type OIDCAccessTokenRequest ¶ added in v1.23.0
type OIDCAccessTokenResponse ¶ added in v1.23.0
type OIDCAccessTokenResponse struct {
AccessToken string `json:"access_token"`
}
type ProviderMetadata ¶ added in v1.24.0
type UsageStruct ¶ added in v1.25.1
Click to show internal directories.
Click to hide internal directories.