certificates

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetVersion = T.First[Version, string]

	OrdVersion = ord.MakeOrd(Version.Compare, Version.Equal)

	// SortCertByVersion sorts the structs by version in inverse order, i.e. the first item will be the latest version
	SortCertByVersion = A.SortByKey(ord.Reverse(OrdVersion), GetVersion)
)

Functions

func SelectCertBySpec

func SelectCertBySpec(spec *semver.Constraints) func(img []VersionCert) O.Option[VersionCert]

SelectCertBySpec selects the latest version that matches the specification

Types

type Version

type Version = *semver.Version

Version identifier

type VersionCert

type VersionCert = T.Tuple2[Version, string]

VersionCert is the pair out of version and certificate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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