repo

package
v0.0.0-...-fcf42dd Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

tonyaw: refer to "kubernetes/helm/pkg/repo/index.go"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(c *swift.Connection, container, url, rootPath, indexName string) error

tonyaw: refer to "index" from "helm/cmd/helm/repo_index.go".

Types

type IndexFile

type IndexFile struct {
	*helm_repo.IndexFile
}

IndexFile represents the index file in a chart repository tonyaw: here only add "WriteObject" function.

func IndexDirectory

func IndexDirectory(c *swift.Connection, container, baseURL, rootPath, indexName string) (*IndexFile, error)

IndexDirectory reads a (flat) directory and generates an index.

It indexes only charts that have been packaged (*.tgz).

The index returned will be in an unsorted state

func LoadIndexFile

func LoadIndexFile(c *swift.Connection, container string, path string) (*IndexFile, error)

LoadIndexFile takes a file at the given path and returns an IndexFile object

func NewIndexFile

func NewIndexFile() *IndexFile

tonyaw: return "IndexFile" defined in this file.

func (*IndexFile) Merge

func (i *IndexFile) Merge(f *IndexFile)

tonyaw: Merge "IndexFile" defined in this file.

func (IndexFile) WriteObject

func (i IndexFile) WriteObject(c *swift.Connection, container, path string) error

WriteObject writes an index file to the given destination path.

Jump to

Keyboard shortcuts

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