Documentation
¶
Index ¶
Constants ¶
View Source
const TimestampFormat = time.RFC3339Nano
Variables ¶
View Source
var ErrServiceNotListed = errors.New("service was not listed by the service index")
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
Id string `json:"@id"`
CommitId string `json:"commitId"`
CommitTimeStamp string `json:"commitTimeStamp"`
Count int `json:"count"`
NugetLastCreated string `json:"nuget:lastCreated"`
NugetLastDeleted string `json:"nuget:lastDeleted"`
NugetLastEdited string `json:"nuget:lastEdited"`
Items []CatalogItem `json:"items"`
}
type CatalogItem ¶
type NugetCatalog ¶
type NugetCatalog struct {
Cursor Cursor
// contains filtered or unexported fields
}
func NewCatalog ¶
func (*NugetCatalog) Catalog ¶
func (c *NugetCatalog) Catalog() (*Catalog, error)
func (*NugetCatalog) Leaves ¶
func (c *NugetCatalog) Leaves() ([]CatalogItem, error)
func (*NugetCatalog) Pages ¶
func (c *NugetCatalog) Pages() ([]CatalogItem, error)
type NugetRepository ¶
type NugetRepository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(h *http.Client) (*NugetRepository, error)
func (*NugetRepository) GetCatalog ¶
func (r *NugetRepository) GetCatalog(cursor Cursor) (*NugetCatalog, error)
type ServiceResource ¶
type Services ¶
type Services struct {
Version string `json:"version"`
Resources []ServiceResource `json:"resources"`
}
Click to show internal directories.
Click to hide internal directories.