version

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version defines SFTPGo version details

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFeature

func AddFeature(feature string)

AddFeature adds a feature description

func GetAsString

func GetAsString() string

GetAsString returns the string representation of the version

func GetServerVersion added in v2.6.0

func GetServerVersion(separator string, addHash bool) string

GetServerVersion returns the server version according to the configuration and the provided parameters.

func GetVersionHash added in v2.6.0

func GetVersionHash() string

GetVersionHash returns the server identification string with the commit hash.

func SetConfig added in v2.6.0

func SetConfig(val string)

SetConfig sets the version configuration

Types

type Info

type Info struct {
	Version    string   `json:"version"`
	BuildDate  string   `json:"build_date"`
	CommitHash string   `json:"commit_hash"`
	Features   []string `json:"features"`
}

Info defines version details

func Get

func Get() Info

Get returns the Info struct

Jump to

Keyboard shortcuts

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