repository

package
v0.0.0-...-97b2e2f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Description string `json:"description"`
	Url         string `json:"url"`
}

type Repo

type Repo struct {
	Charts []Chart `json:"charts"`
}

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(path string) *Repository

NewRepository returns a new instance of chart repository

func (*Repository) Get

func (r *Repository) Get(name string) (ret *Chart, err error)

Get returns a charts entity from repository, if exists

func (*Repository) List

func (r *Repository) List(filterString string) (ret []Chart, err error)

List returns a list of charts from repository

Jump to

Keyboard shortcuts

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