Documentation ¶
Index ¶
- type SyncTarget
- func (s *SyncTarget) CheckDisplayColumns(k *exutil.CLI)
- func (s *SyncTarget) CheckReady(k *exutil.CLI) (bool, error)
- func (s *SyncTarget) Clean(k *exutil.CLI) error
- func (s *SyncTarget) Create(k *exutil.CLI)
- func (s *SyncTarget) CreateAsExpectedResult(k *exutil.CLI, successFlag bool, containsMsg string)
- func (s *SyncTarget) Delete(k *exutil.CLI)
- func (s *SyncTarget) GetFieldByJSONPath(k *exutil.CLI, JSONPath string) (string, error)
- func (s *SyncTarget) GetSynerImageTag(k *exutil.CLI) string
- func (s *SyncTarget) WaitDeploymentsAPISynced(k *exutil.CLI)
- func (s *SyncTarget) WaitUntilReady(k *exutil.CLI)
- func (s *SyncTarget) WaitUntilReadyAndDeploymentsAPISynced(k *exutil.CLI)
- type SyncTargetOption
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) 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) GetFieldByJSONPath ¶
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