Documentation ¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- type Helper
- func (h *Helper) DeleteFakeAPIServer(ns string) error
- func (h *Helper) DeleteIssuer(ns string) error
- func (h *Helper) DeleteProxy(ns string) error
- func (h *Helper) DeployAuditWebhook(ns, logPath string) (corev1.Volume, *url.URL, error)
- func (h *Helper) DeployFakeAPIServer(ns string) ([]corev1.Volume, *url.URL, error)
- func (h *Helper) DeployIssuer(ns string) (*util.KeyBundle, *url.URL, error)
- func (h *Helper) DeployProxy(ns *corev1.Namespace, issuerURL *url.URL, clientID string, ...) (*util.KeyBundle, *url.URL, error)
- func (h *Helper) GetServiceAccountSecret(ns, name string) (*corev1.Secret, error)
- func (h *Helper) Kubectl(ns string) *Kubectl
- func (h *Helper) NewRequester(transport http.RoundTripper, token string) *Requester
- func (h *Helper) NewTokenPayload(issuerURL *url.URL, clientID string, exp time.Time) []byte
- func (h *Helper) NewValidRestConfig(issuerBundle, proxyBundle *util.KeyBundle, issuerURL, proxyURL *url.URL, ...) (*rest.Config, error)
- func (h *Helper) SignToken(issuerBundle *util.KeyBundle, tokenPayload []byte) (string, error)
- func (h *Helper) WaitForDeploymentReady(namespace, name string, timeout time.Duration) error
- func (h *Helper) WaitForDeploymentToDelete(namespace, name string, timeout time.Duration) error
- func (h *Helper) WaitForPodReady(namespace, name string, timeout time.Duration) error
- func (h *Helper) WaitForUrlToBeReady(url *url.URL, timeout time.Duration) error
- type Kubectl
- type Requester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct { KubeClient kubernetes.Interface // contains filtered or unexported fields }
Helper provides methods for common operations needed during tests.
func (*Helper) DeleteFakeAPIServer ¶
func (*Helper) DeleteIssuer ¶
func (*Helper) DeleteProxy ¶
func (*Helper) DeployAuditWebhook ¶
func (*Helper) DeployFakeAPIServer ¶
func (*Helper) DeployIssuer ¶
func (*Helper) DeployProxy ¶
func (*Helper) GetServiceAccountSecret ¶
func (*Helper) NewRequester ¶
func (h *Helper) NewRequester(transport http.RoundTripper, token string) *Requester
func (*Helper) NewTokenPayload ¶
func (*Helper) NewValidRestConfig ¶
func (*Helper) WaitForDeploymentReady ¶
func (*Helper) WaitForDeploymentToDelete ¶
func (*Helper) WaitForPodReady ¶
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
func (*Kubectl) DescribeResource ¶
Click to show internal directories.
Click to hide internal directories.