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
- func Execute()
- func GetClient(cfgPath string) (client.Client, error)
- func GetObjKey(in metav1.Object) types.NamespacedName
- func GetSubKey(id int) types.NamespacedName
- func IsSubscriptionCompleted(r client.Client, subKey types.NamespacedName) (time.Duration, bool)
- func WriteSet(path string, set AppliedSet) error
- type AdvancSet
- type AppliedSet
- type BasicSet
- type GitSubscriptionUnit
- type KeyReg
- type Processor
Constants ¶
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 GetSubKey ¶
func GetSubKey(id int) types.NamespacedName
func IsSubscriptionCompleted ¶
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 (GitSubscriptionUnit) String ¶
func (g GitSubscriptionUnit) String() string
type KeyReg ¶
type KeyReg interface {
GetKeys() []types.NamespacedName
}