framework

package
v0.0.0-...-cdcf638 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDateString

func GetDateString(t time.Time) string

Types

type Framework

type Framework struct {
	KubeClient      kubernetes.Interface
	MessengerClient cs.Interface
	CRDClient       crd_cs.ApiextensionsV1beta1Interface
	KAClient        ka.Interface

	WebhookEnabled bool

	ClientConfig *rest.Config
	// contains filtered or unexported fields
}

func New

func New(
	kubeClient kubernetes.Interface,
	messengerClient cs.Interface,
	crdClient crd_cs.ApiextensionsV1beta1Interface,
	kaClient ka.Interface,
	webhookEnabled bool,
	clientConfig *rest.Config) *Framework

func (*Framework) CreateNamespace

func (f *Framework) CreateNamespace() error

func (*Framework) DeleteNamespace

func (f *Framework) DeleteNamespace() error

func (*Framework) EventuallyAPIServerReady

func (f *Framework) EventuallyAPIServerReady(name string) GomegaAsyncAssertion

func (*Framework) Invoke

func (f *Framework) Invoke() *Invocation

func (*Framework) Namespace

func (f *Framework) Namespace() string

func (*Framework) NewMessengerOptions

func (f *Framework) NewMessengerOptions(kubeConfigPath string, extraOptions *server.ExtraOptions) *server.MessengerOptions

func (*Framework) StartAPIServerAndOperator

func (f *Framework) StartAPIServerAndOperator(kubeConfigPath string, extraOptions *server.ExtraOptions)

type Invocation

type Invocation struct {
	*Framework
	// contains filtered or unexported fields
}

func (*Invocation) App

func (f *Invocation) App() string

func (*Invocation) CreateMessage

func (f *Invocation) CreateMessage(obj *api.Message) (*api.Message, error)

func (*Invocation) CreateMessagingService

func (f *Invocation) CreateMessagingService(obj *api.MessagingService) (*api.MessagingService, error)

func (*Invocation) CreateSecret

func (f *Invocation) CreateSecret(obj *core.Secret) (*core.Secret, error)

func (*Invocation) DeleteAllCRDs

func (f *Invocation) DeleteAllCRDs() error

func (*Invocation) DeleteAllSecrets

func (f *Invocation) DeleteAllSecrets() error

func (*Invocation) EventuallyCheckMessage

func (f *Invocation) EventuallyCheckMessage(msgBoby, timeBeforeSend, authTokenToSeeHistory string) GomegaAsyncAssertion

func (*Invocation) NewMessage

func (f *Invocation) NewMessage(
	genName, namespace string, labels map[string]string,
	service, message, chat, email, sms string) *api.Message

func (*Invocation) NewMessagingService

func (f *Invocation) NewMessagingService(
	name, namespace string, labels map[string]string,
	drive, secret string, to []string) *api.MessagingService

func (*Invocation) NewSecret

func (f *Invocation) NewSecret(name, namespace, authTokenToSendMessage string, labels map[string]string) *core.Secret

Jump to

Keyboard shortcuts

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