gitrepository

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Tag  string
	Path string
}

Instance contains a tag and path of profile.yaml

type Kubernetes

type Kubernetes interface {
	Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
	Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
	Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
}

Kubernetes interface for interacting with Kubernetes

type Manager

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

Manager is responsible for managing gitrepository resources

func NewManager

func NewManager(ctx context.Context, namespace string, kClient Kubernetes, timeout, interval time.Duration) *Manager

NewManager returns a Manager struct

func (*Manager) CreateAndWaitForResources

func (m *Manager) CreateAndWaitForResources(r profilesv1.Repository, instances []Instance) ([]*sourcev1.GitRepository, error)

CreateAndWaitForResources creates the gitrepository resources and waits for them to be created

func (*Manager) DeleteResources

func (m *Manager) DeleteResources(gitRepos []*sourcev1.GitRepository) error

DeleteResources deletes the gitrepository resources

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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