util

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 81

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEnvVars added in v1.20.3

func CheckEnvVars(vars []string, dv string) string

func CheckVersion added in v1.12.0

func CheckVersion(versionToCheck string, supportedVersion string) (bool, error)

func ExecuteTemplate added in v1.1.0

func ExecuteTemplate(name, temp string, fields interface{}) string

func GetArtifactoryVersion added in v1.14.0

func GetArtifactoryVersion(client *resty.Client) (string, error)

func GetXrayVersion added in v1.20.3

func GetXrayVersion(client *resty.Client) (string, error)

func SendUsage added in v0.4.0

func SendUsage(ctx context.Context, client *resty.Client, productId string, featureUsages ...string)

func SendUsageResourceCreate added in v1.21.0

func SendUsageResourceCreate(ctx context.Context, client *resty.Client, productId, resourceName string)

func SendUsageResourceDelete added in v1.21.0

func SendUsageResourceDelete(ctx context.Context, client *resty.Client, productId, resourceName string)

func SendUsageResourceRead added in v1.21.0

func SendUsageResourceRead(ctx context.Context, client *resty.Client, productId, resourceName string)

func SendUsageResourceUpdate added in v1.21.0

func SendUsageResourceUpdate(ctx context.Context, client *resty.Client, productId, resourceName string)

Types

type ProvderMetadata added in v1.12.0

type ProvderMetadata struct {
	Client             *resty.Client
	ProductId          string
	ArtifactoryVersion string
	XrayVersion        string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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