repositories

package
v0.0.0-...-2bbe6b7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 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 Parser

type Parser struct {
	Accessor meta.MetadataAccessor
	// contains filtered or unexported fields
}

Parser parses a list of Kustomization objects and extracts information from them.

func NewParser

func NewParser() *Parser

NewParser creates and returns a new Parser ready for use.

func (*Parser) Add

func (p *Parser) Add(list *sourcev1.GitRepositoryList) error

Add a list of Kustomization objects to be parsed.

func (*Parser) Repositories

func (p *Parser) Repositories() []Repository

type Repository

type Repository struct {
	URL  string
	Refs []RepositoryRef
}

Repository is a summarised version of a list of GitRepository objects.

type RepositoryRef

type RepositoryRef struct {
	types.NamespacedName
	Ref sourcev1.GitRepositoryRef
}

RepositoryRef indicates which ref a specific GitRepository is tracking.

Jump to

Keyboard shortcuts

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