sync

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sync provides the sync command, which synchronizes an agent-version from github with the store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentVersionCommand

func AgentVersionCommand(builder Builder) *cobra.Command

AgentVersionCommand returns the iris sync agent-version cobra command

func Command

func Command(builder Builder) *cobra.Command

Command returns the iris sync cobra command

Types

type Builder

type Builder interface {
	// Build returns a new Syncer.
	BuildSyncer(ctx context.Context) (Syncer, error)
}

Builder is an interface for building a Syncer.

type Syncer

type Syncer interface {
	// SyncAgentVersions syncs agent versions.
	SyncAgentVersions(ctx context.Context, version string) ([]*model.AnyResourceStatus, error)
}

Syncer is an interface for syncing resources.

func NewSyncer

func NewSyncer(client client.BindPlane) Syncer

NewSyncer returns a new Syncer.

Jump to

Keyboard shortcuts

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