Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package module
v0.0.0-...-6cfe6fe Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MPL-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiTlsMinVersion uint16 = tls.VersionTLS12

Functions

func Api2PkgMgrTasks

func Api2PkgMgrTasks(body []byte) (tasks map[PkgMgrTask]struct{}, err error)

func PkgMgrTasks2Api

func PkgMgrTasks2Api(tasks map[PkgMgrTask]struct{}) (jsn []byte, err error)

Types

type LazyLogString

type LazyLogString struct {
	Generator func() string
}

func (LazyLogString) MarshalText

func (s LazyLogString) MarshalText() (text []byte, err error)

func (LazyLogString) String

func (s LazyLogString) String() string

type PkgMgrAction

type PkgMgrAction uint8
const (
	PkgMgrInstall   PkgMgrAction = 0
	PkgMgrUpdate    PkgMgrAction = 1
	PkgMgrConfigure PkgMgrAction = 2
	PkgMgrRemove    PkgMgrAction = 3
	PkgMgrPurge     PkgMgrAction = 4
)

type PkgMgrTask

type PkgMgrTask struct {
	PackageName, FromVersion, ToVersion string
	Action                              PkgMgrAction
}

Jump to

Keyboard shortcuts

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