Documentation ¶
Index ¶
- func CreateProject(f *Framework, name string, labels map[string]string) (*v1.Namespace, error)
- func CreateTestingNamespace(f *Framework, name string, labels map[string]string) (*v1.Namespace, error)
- func CreateTestingProjectAndChangeUser(f *Framework, name string, labels map[string]string) (*v1.Namespace, error)
- func DeleteNamespace(f *Framework, ns *v1.Namespace) error
- func DumpEventsInNamespace(c kubernetes.Interface, namespace string)
- func Failf(format string, args ...interface{})
- func Logf(format string, args ...interface{})
- func Skipf(format string, args ...interface{})
- type CreateTestingNSFn
- type DeleteTestingNSFn
- type DeleteTestingNSPolicyType
- type Framework
- func (f *Framework) AddNamespace(namespace *v1.Namespace)
- func (f *Framework) AdminClientConfig() *rest.Config
- func (f *Framework) AfterEach()
- func (f *Framework) BeforeEach()
- func (f *Framework) ChangeUser(username string, namespace string)
- func (f *Framework) ClientConfig() *rest.Config
- func (f *Framework) CreateNamespace(name string, labels map[string]string) (*v1.Namespace, error)
- func (f *Framework) DeleteNamespace(ns *v1.Namespace) error
- func (f *Framework) KubeAdminClientSet() *kubernetes.Clientset
- func (f *Framework) KubeClientSet() *kubernetes.Clientset
- func (f *Framework) Namespace() string
- func (f *Framework) OAuthClientset() oauthclientset.Interface
- func (f *Framework) ProjectClientset() projectclientset.Interface
- func (f *Framework) RouteClientset() routeclientset.Interface
- func (f *Framework) UserClientset() userclientset.Interface
- func (f *Framework) Username() string
- type TestContextType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProject ¶
func CreateTestingNamespace ¶
func DumpEventsInNamespace ¶
func DumpEventsInNamespace(c kubernetes.Interface, namespace string)
Types ¶
type CreateTestingNSFn ¶
type DeleteTestingNSPolicyType ¶
type DeleteTestingNSPolicyType string
var ( DeleteTestingNSPolicyAlways DeleteTestingNSPolicyType = "Always" DeleteTestingNSPolicyOnSuccess DeleteTestingNSPolicyType = "OnSuccess" DeleteTestingNSPolicyNever DeleteTestingNSPolicyType = "Never" )
type Framework ¶
type Framework struct {
// contains filtered or unexported fields
}
func NewFramework ¶
func (*Framework) AddNamespace ¶
func (*Framework) AdminClientConfig ¶
func (*Framework) BeforeEach ¶
func (f *Framework) BeforeEach()
func (*Framework) ChangeUser ¶
func (*Framework) ClientConfig ¶
func (*Framework) CreateNamespace ¶
func (*Framework) KubeAdminClientSet ¶
func (f *Framework) KubeAdminClientSet() *kubernetes.Clientset
func (*Framework) KubeClientSet ¶
func (f *Framework) KubeClientSet() *kubernetes.Clientset
func (*Framework) OAuthClientset ¶
func (f *Framework) OAuthClientset() oauthclientset.Interface
func (*Framework) ProjectClientset ¶
func (f *Framework) ProjectClientset() projectclientset.Interface
func (*Framework) RouteClientset ¶
func (f *Framework) RouteClientset() routeclientset.Interface
func (*Framework) UserClientset ¶
func (f *Framework) UserClientset() userclientset.Interface
type TestContextType ¶
type TestContextType struct { KubeConfigPath string CreateTestingNS CreateTestingNSFn DeleteTestingNS DeleteTestingNSFn DeleteTestingNSPolicy DeleteTestingNSPolicyType }
var TestContext TestContextType
Click to show internal directories.
Click to hide internal directories.