istio: istio.io/istio/pkg/test/util/curl Index | Files

package curl

import "istio.io/istio/pkg/test/util/curl"

Index

Package Files

version.go

func RequireMinVersion Uses

func RequireMinVersion(min *semver.Version) error

RequireMinVersion returns an error if the version of curl on the system does not meet the specified minimum.

func RequireMinVersionOrFail Uses

func RequireMinVersionOrFail(t test.Failer, min *semver.Version)

RequireMinVersionOrFail calls RequireMinVersion. If it returns an error, fails the given test.

type VersionInfo Uses

type VersionInfo struct {
    // Version of curl.
    Version *semver.Version

    // Protocols supported by this version of curl.
    Protocols []string

    // Features supported by this version of curl.
    Features []string
}

VersionInfo provides the detailed information for the version of curl on the system.

func GetVersion Uses

func GetVersion() (VersionInfo, error)

GetVersion gets the version of curl on the system.

Package curl imports 6 packages (graph). Updated 2019-11-25. Refresh now. Tools for package owners.