Documentation ¶
Index ¶
- Constants
- Variables
- func GetFreePort() (int, error)
- func MustLoadFileToString(path string) string
- func NewControllerRevision() *unstructured.Unstructured
- func NewDeployment() *unstructured.Unstructured
- func NewFakeConfigMap() *apiv1.ConfigMap
- func NewFakeProjLister(objects ...runtime.Object) applister.AppProjectNamespaceLister
- func NewFakeProjListerFromInterface(appProjects appclient.AppProjectInterface) applister.AppProjectNamespaceLister
- func NewFakeSecret(policy ...string) *apiv1.Secret
- func StartInformer(informer cache.SharedIndexInformer) context.CancelFunc
- func WaitForPortListen(addr string, timeout time.Duration) error
Constants ¶
View Source
const ( FakeArgoCDNamespace = "fake-argocd-ns" FakeDestNamespace = "fake-dest-ns" FakeClusterURL = "https://fake-cluster:443" )
Variables ¶
View Source
var DeploymentManifest = `` /* 627-byte string literal not displayed */
Functions ¶
func GetFreePort ¶ added in v0.11.0
GetFreePort finds an available free port on the OS
func MustLoadFileToString ¶ added in v1.7.0
Read the contents of a file and returns it as string. Panics on error.
func NewControllerRevision ¶ added in v1.4.0
func NewControllerRevision() *unstructured.Unstructured
func NewDeployment ¶ added in v0.11.0
func NewDeployment() *unstructured.Unstructured
func NewFakeConfigMap ¶ added in v0.11.1
func NewFakeProjLister ¶ added in v0.11.1
func NewFakeProjLister(objects ...runtime.Object) applister.AppProjectNamespaceLister
func NewFakeProjListerFromInterface ¶ added in v1.7.12
func NewFakeProjListerFromInterface(appProjects appclient.AppProjectInterface) applister.AppProjectNamespaceLister
func NewFakeSecret ¶ added in v0.11.1
func StartInformer ¶ added in v0.11.0
func StartInformer(informer cache.SharedIndexInformer) context.CancelFunc
StartInformer is a helper to start an informer, wait for its cache to sync and return a cancel func
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.