Documentation ¶
Index ¶
- Constants
- func Default() *v1.Repo
- type Client
- func (c *Client) GetOrCreateRepo(ctx context.Context) (*v1.Repo, status.Error)
- func (c *Client) UpdateImportStatus(ctx context.Context, repo *v1.Repo) (*v1.Repo, status.Error)
- func (c *Client) UpdateSourceStatus(ctx context.Context, repo *v1.Repo) (*v1.Repo, status.Error)
- func (c *Client) UpdateSyncStatus(ctx context.Context, repo *v1.Repo) (*v1.Repo, status.Error)
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 ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the syncer Client with functions specific to Repo objects.
func (*Client) GetOrCreateRepo ¶
GetOrCreateRepo returns the Repo resource for the cluster or creates if it does not yet exist.
func (*Client) UpdateImportStatus ¶
UpdateImportStatus updates the portion of the RepoStatus related to the importer.
func (*Client) UpdateSourceStatus ¶
UpdateSourceStatus updates the portion of the RepoStatus related to the source of truth.
Click to show internal directories.
Click to hide internal directories.