Documentation ¶
Index ¶
- Constants
- type ListReleaseNamesResponse
- type Server
- func (s *Server) GetChecksum(ctx *fiber.Ctx) error
- func (s *Server) GetLatestReleaseName(ctx *fiber.Ctx) error
- func (s *Server) GetLatestReleaseShellScript(ctx *fiber.Ctx) error
- func (s *Server) GetPing(ctx *fiber.Ctx) error
- func (s *Server) GetReleaseArtifact(ctx *fiber.Ctx) error
- func (s *Server) GetReleaseShellScript(ctx *fiber.Ctx) error
- func (s *Server) ListReleaseNames(ctx *fiber.Ctx) error
- func (s *Server) Start(address string, config *tls.Config, tlsOverride bool) (err error)
- func (s *Server) Stop() error
Constants ¶
View Source
const ( LatestReleasePath = "/" PingPath = "/ping" LatestReleaseNamePath = "/latest" ListReleaseNamesPath = "/releases" ChecksumPath = "/checksum" ReleaseNameArgPath = "/:release_name" OSArgPath = "/:os" ArchArgPath = "/:arch" Analytics = "analytics" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListReleaseNamesResponse ¶ added in v0.1.2
type ListReleaseNamesResponse struct {
ReleaseNames []string `json:"release_names"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetChecksum ¶
GetChecksum returns the checksum for the given release name, os, and arch
func (*Server) GetLatestReleaseName ¶ added in v0.1.2
GetLatestReleaseName returns the name of the latest release
func (*Server) GetLatestReleaseShellScript ¶ added in v0.1.2
GetLatestReleaseShellScript returns a shell script which will download the latest release of the binary and install it on the system
func (*Server) GetReleaseArtifact ¶ added in v0.1.2
GetReleaseArtifact returns the artifact for the given release name, os, and arch
func (*Server) GetReleaseShellScript ¶ added in v0.1.2
GetReleaseShellScript returns a shell script which will download the given release of the binary and install it on the system
func (*Server) ListReleaseNames ¶ added in v0.1.2
ListReleaseNames returns a list of all available release names
Click to show internal directories.
Click to hide internal directories.