state

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetAlpineMirror added in v0.6.0

func GetAlpineMirror() *url.URL

func GetCentOSMirror added in v0.6.0

func GetCentOSMirror() *url.URL

func GetDebianMirror

func GetDebianMirror() *url.URL

func GetProxyMode

func GetProxyMode() int

func GetUbuntuMirror

func GetUbuntuMirror() *url.URL

func GetUbuntuPortsMirror added in v0.6.0

func GetUbuntuPortsMirror() *url.URL

func ResetAlpineMirror added in v0.6.0

func ResetAlpineMirror()

func ResetCentOSMirror added in v0.6.0

func ResetCentOSMirror()

func ResetDebianMirror added in v0.2.0

func ResetDebianMirror()

func ResetUbuntuMirror added in v0.2.0

func ResetUbuntuMirror()

func ResetUbuntuPortsMirror added in v0.6.0

func ResetUbuntuPortsMirror()

func SetAlpineMirror added in v0.6.0

func SetAlpineMirror(input string)

func SetCentOSMirror added in v0.6.0

func SetCentOSMirror(input string)

func SetDebianMirror

func SetDebianMirror(input string)

func SetProxyMode

func SetProxyMode(mode int)

func SetUbuntuMirror

func SetUbuntuMirror(input string)

Convenience functions for backward compatibility

func SetUbuntuPortsMirror added in v0.6.0

func SetUbuntuPortsMirror(input string)

Types

type MirrorState added in v0.6.0

type MirrorState struct {
	// contains filtered or unexported fields
}

MirrorState manages mirror URL states

func NewMirrorState added in v0.6.0

func NewMirrorState(distType int) *MirrorState

NewMirrorState creates a new MirrorState instance

func (*MirrorState) Get added in v0.6.0

func (m *MirrorState) Get() *url.URL

Get returns the current mirror URL

func (*MirrorState) Reset added in v0.6.0

func (m *MirrorState) Reset()

Reset clears the mirror URL

func (*MirrorState) Set added in v0.6.0

func (m *MirrorState) Set(input string)

Set updates the mirror URL

Jump to

Keyboard shortcuts

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