Documentation ¶
Index ¶
- func CheckArtifactoryLicense(client *resty.Client, licenseTypesToCheck ...string) error
- func CheckEnvVars(vars []string, defaultValue 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, credentialTag 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 JFrogError
- type JFrogErrors
- type JFrogResource
- 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, credentialTag 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 JFrogError ¶ added in v1.27.0
type JFrogErrors ¶ added in v1.27.0
type JFrogErrors struct {
Errors []JFrogError `json:"errors"`
}
func (JFrogErrors) String ¶ added in v1.27.0
func (e JFrogErrors) String() string
type JFrogResource ¶ added in v1.27.0
type JFrogResource struct { ProviderData *ProviderMetadata TypeName string ValidArtifactoryVersion string DocumentEndpoint string CollectionEndpoint string }
func (*JFrogResource) Configure ¶ added in v1.27.0
func (r *JFrogResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*JFrogResource) Metadata ¶ added in v1.27.0
func (r *JFrogResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (JFrogResource) ValidateConfig ¶ added in v1.27.0
func (r JFrogResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
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.