state

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetAlpineMirror

func GetAlpineMirror() *url.URL

func GetCentOSMirror

func GetCentOSMirror() *url.URL

func GetDebianMirror

func GetDebianMirror() *url.URL

func GetDebianSecurityMirror

func GetDebianSecurityMirror() *url.URL

func GetFedoraMirror

func GetFedoraMirror() *url.URL

func GetProxyMode

func GetProxyMode() int

func GetRockyMirror

func GetRockyMirror() *url.URL

func GetUbuntuMirror

func GetUbuntuMirror() *url.URL

func GetUbuntuPortsMirror

func GetUbuntuPortsMirror() *url.URL

func ResetAlpineMirror

func ResetAlpineMirror()

func ResetCentOSMirror

func ResetCentOSMirror()

func ResetDebianMirror

func ResetDebianMirror()

func ResetDebianSecurityMirror

func ResetDebianSecurityMirror()

func ResetFedoraMirror

func ResetFedoraMirror()

func ResetRockyMirror

func ResetRockyMirror()

func ResetUbuntuMirror

func ResetUbuntuMirror()

func ResetUbuntuPortsMirror

func ResetUbuntuPortsMirror()

func SetAlpineMirror

func SetAlpineMirror(input string)

func SetCentOSMirror

func SetCentOSMirror(input string)

func SetDebianMirror

func SetDebianMirror(input string)

func SetDebianSecurityMirror

func SetDebianSecurityMirror(input string)

func SetFedoraMirror

func SetFedoraMirror(input string)

func SetProxyMode

func SetProxyMode(mode int)

func SetRockyMirror

func SetRockyMirror(input string)

func SetUbuntuMirror

func SetUbuntuMirror(input string)

Convenience functions for backward compatibility

func SetUbuntuPortsMirror

func SetUbuntuPortsMirror(input string)

Types

type MirrorState

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

MirrorState manages mirror URL states

func NewMirrorState

func NewMirrorState(distType int) *MirrorState

NewMirrorState creates a new MirrorState instance

func (*MirrorState) Get

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

Get returns the current mirror URL

func (*MirrorState) Reset

func (m *MirrorState) Reset()

Reset clears the mirror URL

func (*MirrorState) Set

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