repo_indexer

package
v0.0.0-...-162f8c7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(cfg *config.Config)

func SyncAppInfo

func SyncAppInfo(repoId, owner, chartName string, chartVersions *repo.ChartVersions) (string, error)

func SyncAppVersionInfo

func SyncAppVersionInfo(appId, owner string, chartVersion *repo.ChartVersion) (string, error)

Types

type Indexer

type Indexer struct {
	*pi.Pi
	// contains filtered or unexported fields
}

func NewIndexer

func NewIndexer(pi *pi.Pi) *Indexer

func (*Indexer) Dequeue

func (i *Indexer) Dequeue()

func (*Indexer) GetTaskLength

func (i *Indexer) GetTaskLength() int32

func (*Indexer) IndexRepo

func (i *Indexer) IndexRepo(repoTask *models.RepoTask, cb func())

func (*Indexer) NewRepoTask

func (i *Indexer) NewRepoTask(repoId, owner string) (*models.RepoTask, error)

func (*Indexer) Serve

func (i *Indexer) Serve()

type Server

type Server struct {
	*pi.Pi
	// contains filtered or unexported fields
}

func (*Server) Cron

func (p *Server) Cron()

func (*Server) DescribeRepoTasks

func (p *Server) DescribeRepoTasks(ctx context.Context, req *pb.DescribeRepoTasksRequest) (*pb.DescribeRepoTasksResponse, error)

func (*Server) IndexRepo

func (p *Server) IndexRepo(ctx context.Context, req *pb.IndexRepoRequest) (*pb.IndexRepoResponse, error)

Jump to

Keyboard shortcuts

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