Documentation ¶
Index ¶
Constants ¶
View Source
const (
UpgradeFileName = "dtail"
)
Variables ¶
View Source
var (
ErrDownloadUrlEmpty = errors.New("download url is empty")
)
View Source
var (
ErrStop = fmt.Errorf("tail should now stop")
)
View Source
var Version string
Functions ¶
func AskUpgrade ¶
func AskUpgrade(direct bool)
func CheckUpgrade ¶
func CheckUpgrade()
func NewTailDir ¶
func NewTailDir(dirname string)
Types ¶
type GithubRelease ¶
func (*GithubRelease) Latest ¶
func (g *GithubRelease) Latest() error
func (*GithubRelease) Upgrade ¶
func (g *GithubRelease) Upgrade() error
func (*GithubRelease) UpgradeFile ¶
func (g *GithubRelease) UpgradeFile() (UpgradeFile, error)
func (*GithubRelease) Version ¶
func (g *GithubRelease) Version() string
type Release ¶
func NewGithubRelease ¶
func NewGithubRelease() Release
type TarGzUpgradeFile ¶
func (*TarGzUpgradeFile) Do ¶
func (f *TarGzUpgradeFile) Do() error
type UpgradeFile ¶
type UpgradeFile interface {
Do() error
}
Click to show internal directories.
Click to hide internal directories.