repo

package
v1.13.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentVersion = "1.0.0"

CurrentVersion is the version of the format for the ConfigManagement Repo.

Variables

This section is empty.

Functions

func Default

func Default() *v1.Repo

Default returns a default Repo in case one is not defined in the source of truth.

Types

type Client

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

Client wraps the syncer Client with functions specific to Repo objects.

func New

func New(client *syncclient.Client) *Client

New returns a new Client.

func (*Client) GetOrCreateRepo

func (c *Client) GetOrCreateRepo(ctx context.Context) (*v1.Repo, status.Error)

GetOrCreateRepo returns the Repo resource for the cluster or creates if it does not yet exist.

func (*Client) UpdateImportStatus

func (c *Client) UpdateImportStatus(ctx context.Context, repo *v1.Repo) (*v1.Repo, status.Error)

UpdateImportStatus updates the portion of the RepoStatus related to the importer.

func (*Client) UpdateSourceStatus

func (c *Client) UpdateSourceStatus(ctx context.Context, repo *v1.Repo) (*v1.Repo, status.Error)

UpdateSourceStatus updates the portion of the RepoStatus related to the source of truth.

func (*Client) UpdateSyncStatus

func (c *Client) UpdateSyncStatus(ctx context.Context, repo *v1.Repo) (*v1.Repo, status.Error)

UpdateSyncStatus updates the portion of the RepoStatus related to the syncer.

Jump to

Keyboard shortcuts

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