cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	HUB_CLUSTER_NAME = "local-cluster"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetClient

func GetClient(cfgPath string) (client.Client, error)

func GetObjKey

func GetObjKey(in metav1.Object) types.NamespacedName

func GetSubKey

func GetSubKey(id int) types.NamespacedName

func IsSubscriptionCompleted

func IsSubscriptionCompleted(r client.Client, subKey types.NamespacedName) (time.Duration, bool)

func WriteSet

func WriteSet(path string, set AppliedSet) error

Types

type AdvancSet

type AdvancSet struct {
}

func (AdvancSet) GetKeys

func (a AdvancSet) GetKeys() []types.NamespacedName

type AppliedSet

type AppliedSet map[int]struct{}

func LoadSet

func LoadSet(path string) (AppliedSet, error)

func (AppliedSet) GetKeys

func (as AppliedSet) GetKeys() []types.NamespacedName

type BasicSet

type BasicSet struct {
}

BasicSet is the for the first test flow, in the single folder

func (BasicSet) GetKeys

func (b BasicSet) GetKeys() []types.NamespacedName

type GitSubscriptionUnit

type GitSubscriptionUnit struct {
	ChnNs corev1.Namespace
	Chn   chv1.Channel

	SubNs corev1.Namespace
	App   appv1beta1.Application
	Sub   subv1.Subscription
	Plr   plrv1.PlacementRule
}

func GenUnit

func GenUnit(id int) GitSubscriptionUnit

apply workload to different namespaces

func (GitSubscriptionUnit) Apply

func (g GitSubscriptionUnit) Apply(clt client.Client) error

func (GitSubscriptionUnit) Clean

func (g GitSubscriptionUnit) Clean(clt client.Client) error

func (GitSubscriptionUnit) String

func (g GitSubscriptionUnit) String() string

type KeyReg

type KeyReg interface {
	GetKeys() []types.NamespacedName
}

type Processor

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

func (*Processor) Check

func (s *Processor) Check(casetype string, timeout time.Duration) error

Jump to

Keyboard shortcuts

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