syncer

package
v0.0.0-...-3256294 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncTarget

type SyncTarget struct {
	Name            string
	SyncerImage     string
	OutputFilePath  string
	WorkSpaceServer string
}

SyncTarget struct definition

func NewSyncTarget

func NewSyncTarget(opts ...SyncTargetOption) SyncTarget

NewSyncTarget create a new customized SyncTarget

func (*SyncTarget) CheckDisplayColumns

func (s *SyncTarget) CheckDisplayColumns(k *exutil.CLI)

CheckDisplayColumns checks the SyncTarget info showing the expected columns

func (*SyncTarget) CheckReady

func (s *SyncTarget) CheckReady(k *exutil.CLI) (bool, error)

CheckReady checks whether the SyncTarget is ready

func (*SyncTarget) Clean

func (s *SyncTarget) Clean(k *exutil.CLI) error

Clean the SyncTarget resource

func (*SyncTarget) Create

func (s *SyncTarget) Create(k *exutil.CLI)

Create SyncTarget

func (*SyncTarget) CreateAsExpectedResult

func (s *SyncTarget) CreateAsExpectedResult(k *exutil.CLI, successFlag bool, containsMsg string)

CreateAsExpectedResult creates SyncTarget CR and checks the created result is as expected

func (*SyncTarget) Delete

func (s *SyncTarget) Delete(k *exutil.CLI)

Delete the SyncTarget

func (*SyncTarget) GetFieldByJSONPath

func (s *SyncTarget) GetFieldByJSONPath(k *exutil.CLI, JSONPath string) (string, error)

GetFieldByJSONPath gets specific field value of the SyncTarget by jsonpath

func (*SyncTarget) GetSynerImageTag

func (s *SyncTarget) GetSynerImageTag(k *exutil.CLI) string

GetSynerImageTag gets the syncer image tag by kcp server version/gitCommit returns kcp server version tag for kcp release versions test environments returns kcp server gitCommit tag for kcp dev versions test environments

func (*SyncTarget) WaitDeploymentsAPISynced

func (s *SyncTarget) WaitDeploymentsAPISynced(k *exutil.CLI)

WaitDeploymentsAPISynced waits the deployments api resource synced

func (*SyncTarget) WaitUntilReady

func (s *SyncTarget) WaitUntilReady(k *exutil.CLI)

WaitUntilReady waits the SyncTarget become ready

func (*SyncTarget) WaitUntilReadyAndDeploymentsAPISynced

func (s *SyncTarget) WaitUntilReadyAndDeploymentsAPISynced(k *exutil.CLI)

WaitUntilReadyAndDeploymentsAPISynced waits the SyncTarget become ready and the deployments api resource synced

type SyncTargetOption

type SyncTargetOption func(*SyncTarget)

SyncTargetOption uses function option mode to change the default values of SyncTarget attributes

func SetSyncTargetName

func SetSyncTargetName(name string) SyncTargetOption

SetSyncTargetName sets the SyncTarget's name

func SetSyncTargetOutputFilePath

func SetSyncTargetOutputFilePath(path string) SyncTargetOption

SetSyncTargetOutputFilePath sets the SyncTarget's OutputFilePath

Jump to

Keyboard shortcuts

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