hab

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package hab provides utility functions for working with Habitat https://www.habitat.sh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Depot

type Depot interface {
	PackageVersionsFromName(pkgName string, habChannel string) ([]string, error)
}

Depot for hab.

func New

func New(baseURL string) Depot

New returns a new depot object.

type PackageInfo

type PackageInfo struct {
	Origin   string   `json:"origin"`
	Name     string   `json:"name"`
	Version  string   `json:"version"`
	Release  string   `json:"release"`
	Channels []string `json:"channels"`
}

PackageInfo is package info in pkgs response.

type PackagesInfo

type PackagesInfo struct {
	RangeStart  int           `json:"range_start"`
	RangeEnd    int           `json:"range_end"`
	TotalCount  int           `json:"total_count"`
	PackageList []PackageInfo `json:"data"`
}

PackagesInfo is response from depot.

Jump to

Keyboard shortcuts

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