provider

package
v0.0.0-...-7b39720 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStackdriverProvider

func NewStackdriverProvider(stackdriverService *sd.Service, maxRetrievedEvents int, sinceMillis int64) provider.EventsProvider

NewStackdriverProvider creates a new Provider with standard settings

Types

type StackdriverProvider

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

StackdriverProvider implements EventsProvider

func (*StackdriverProvider) CreateNewEvent

func (p *StackdriverProvider) CreateNewEvent(namespace string) (*api.Event, error)

CreateNewEvent creates a new event in the given namespace

func (*StackdriverProvider) GetNamespacedEventsByName

func (p *StackdriverProvider) GetNamespacedEventsByName(namespace, eventName string) (*api.Event, error)

GetNamespacedEventsByName gets the event with the given namespace and name

func (*StackdriverProvider) ListAllEvents

func (p *StackdriverProvider) ListAllEvents() (*api.EventList, error)

ListAllEvents gets all the events

func (*StackdriverProvider) ListAllEventsByNamespace

func (p *StackdriverProvider) ListAllEventsByNamespace(namespace string) (*api.EventList, error)

ListAllEventsByNamespace gets all the events with the given namespace

Jump to

Keyboard shortcuts

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