syslog

package
v0.0.0-...-43db882 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCSV

func WriteCSV(w io.Writer, sds []*Drain) error

Types

type Drain

type Drain struct {
	GUID          string
	Name          string
	URL           string
	CreatedAt     time.Time
	UpdatedAt     time.Time
	LastOperation *resource.LastOperation
	Organization  *resource.Organization
	Space         *resource.Space
	Apps          []*resource.App
}

type DrainLister

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

func NewDrainLister

func NewDrainLister(cf *client.Client, log Logger) *DrainLister

func (*DrainLister) ListOrgSyslogDrains

func (c *DrainLister) ListOrgSyslogDrains(ctx context.Context, orgGUID string) ([]*Drain, error)

func (*DrainLister) ListSpaceSyslogDrains

func (c *DrainLister) ListSpaceSyslogDrains(ctx context.Context, spaceGUID string) ([]*Drain, error)

func (*DrainLister) ListSyslogDrains

func (c *DrainLister) ListSyslogDrains(ctx context.Context) ([]*Drain, error)

type Logger

type Logger interface {
	Fatalf(format string, args ...interface{})
	Printf(format string, args ...interface{})
}

Logger is used for outputting results and errors

Jump to

Keyboard shortcuts

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