Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiTlsCipherSuites = []uint16{ tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305, }
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
}
Click to show internal directories.
Click to hide internal directories.