helpers

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchKubernetesNodes added in v0.1.6

func FetchKubernetesNodes(kubeconfig []byte, contextName string) ([]*models.K8SNode, error)

FetchKubernetesNodes - function used to fetch nodes metadata

func FetchKubernetesVersion added in v0.1.6

func FetchKubernetesVersion(kubeconfig []byte, contextName string) (string, error)

FetchKubernetesVersion - function used to fetch kubernetes server version

func FortioLoadTest

func FortioLoadTest(opts *models.LoadTestOptions) (map[string]interface{}, *periodic.RunnerResults, error)

FortioLoadTest is the actual code which invokes Fortio to run the load test

func ScanIstio added in v0.2.4

func ScanIstio(kubeconfig []byte, contextName string) (map[string]string, error)

ScanIstio - lists VirtualServices

func ScanKubernetes added in v0.2.0

func ScanKubernetes(kubeconfig []byte, contextName string) (map[string]string, error)

ScanKubernetes - Runs a quick scan on kubernetes to find out the version of service meshes deployed

func ScanPromGrafana added in v0.2.4

func ScanPromGrafana(kubeconfig []byte, contextName string) (map[string][]string, error)

ScanPromGrafana - Runs a quick scan for Prometheus & Grafanas

Types

type AdaptersTracker

type AdaptersTracker struct {
	// contains filtered or unexported fields
}

AdaptersTracker is used to hold the list of known adapters

func NewAdaptersTracker

func NewAdaptersTracker(adapterURLs []string) *AdaptersTracker

NewAdaptersTracker returns an instance of AdaptersTracker

func (*AdaptersTracker) AddAdapter

func (a *AdaptersTracker) AddAdapter(ctx context.Context, adapterURL string)

AddAdapter is used to add new adapters to the collection

func (*AdaptersTracker) GetAdapters

func (a *AdaptersTracker) GetAdapters(ctx context.Context) []string

GetAdapters returns the list of existing adapters

func (*AdaptersTracker) RemoveAdapter

func (a *AdaptersTracker) RemoveAdapter(ctx context.Context, adapterURL string)

RemoveAdapter is used to remove existing adapters from the collection

type BadgerSessionPersister

type BadgerSessionPersister struct {
	// contains filtered or unexported fields
}

BadgerSessionPersister assists with persisting session in a badger store

func NewBadgerSessionPersister

func NewBadgerSessionPersister(folderName string) (*BadgerSessionPersister, error)

NewBadgerSessionPersister creates a new BadgerSessionPersister instance

func (*BadgerSessionPersister) Close

func (s *BadgerSessionPersister) Close()

Close closes the badger store

func (*BadgerSessionPersister) Delete

func (s *BadgerSessionPersister) Delete(userID string) error

Delete removes the session for the user

func (*BadgerSessionPersister) Read

func (s *BadgerSessionPersister) Read(userID string) (*models.Session, error)

Read reads the session data for the given userID

func (*BadgerSessionPersister) Write

func (s *BadgerSessionPersister) Write(userID string, data *models.Session) error

Write persists session for the user

type BitCaskSessionPersister added in v0.2.4

type BitCaskSessionPersister struct {
	// contains filtered or unexported fields
}

BitCaskSessionPersister assists with persisting session in a Bitcask store

func NewBitCaskSessionPersister added in v0.2.4

func NewBitCaskSessionPersister(folderName string) (*BitCaskSessionPersister, error)

NewBitCaskSessionPersister creates a new BitCaskSessionPersister instance

func (*BitCaskSessionPersister) Close added in v0.2.4

func (s *BitCaskSessionPersister) Close()

Close closes the badger store

func (*BitCaskSessionPersister) Delete added in v0.2.4

func (s *BitCaskSessionPersister) Delete(userID string) error

Delete removes the session for the user

func (*BitCaskSessionPersister) Read added in v0.2.4

func (s *BitCaskSessionPersister) Read(userID string) (*models.Session, error)

Read reads the session data for the given userID

func (*BitCaskSessionPersister) Write added in v0.2.4

func (s *BitCaskSessionPersister) Write(userID string, data *models.Session) error

Write persists session for the user

type FileSessionPersister

type FileSessionPersister struct {
	// contains filtered or unexported fields
}

FileSessionPersister assists with persisting session in a file store

func NewFileSessionPersister

func NewFileSessionPersister(folder string) *FileSessionPersister

NewFileSessionPersister returns a new instance of FileSessionPersister

func (*FileSessionPersister) Close

func (s *FileSessionPersister) Close()

Close closes the persister

func (*FileSessionPersister) Delete

func (s *FileSessionPersister) Delete(userID string) error

Delete removes the session for the user

func (*FileSessionPersister) Read

func (s *FileSessionPersister) Read(userID string) (*models.Session, error)

Read reads the session data for the given userID

func (*FileSessionPersister) Write

func (s *FileSessionPersister) Write(userID string, data *models.Session) error

Write persists session for the user

type MapSessionPersister added in v0.2.0

type MapSessionPersister struct {
	// contains filtered or unexported fields
}

MapSessionPersister assists with persisting session in a badger store

func NewMapSessionPersister added in v0.2.0

func NewMapSessionPersister() (*MapSessionPersister, error)

NewMapSessionPersister creates a new MapSessionPersister instance

func (*MapSessionPersister) Close added in v0.2.0

func (s *MapSessionPersister) Close()

Close closes the DB

func (*MapSessionPersister) Delete added in v0.2.0

func (s *MapSessionPersister) Delete(userID string) error

Delete removes the session for the user

func (*MapSessionPersister) Read added in v0.2.0

func (s *MapSessionPersister) Read(userID string) (*models.Session, error)

Read reads the session data for the given userID

func (*MapSessionPersister) Write added in v0.2.0

func (s *MapSessionPersister) Write(userID string, data *models.Session) error

Write persists session for the user

type UUIDQueryTracker

type UUIDQueryTracker struct {
	// contains filtered or unexported fields
}

UUIDQueryTracker tracks queries for a load test UUID

func NewUUIDQueryTracker

func NewUUIDQueryTracker() *UUIDQueryTracker

NewUUIDQueryTracker creates a new instance of UUIDQueryTracker

func (*UUIDQueryTracker) AddOrFlagQuery

func (a *UUIDQueryTracker) AddOrFlagQuery(ctx context.Context, uuid, query string, flag bool)

AddOrFlagQuery either adds a new query or flags an existing one

func (*UUIDQueryTracker) GetQueriesForUUID

func (a *UUIDQueryTracker) GetQueriesForUUID(ctx context.Context, uuid string) map[string]bool

GetQueriesForUUID retrieves queries for UUID

func (*UUIDQueryTracker) RemoveUUID

func (a *UUIDQueryTracker) RemoveUUID(ctx context.Context, uuid string)

RemoveUUID removes an existing UUID from the collection

Jump to

Keyboard shortcuts

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