cloudwatch

package
v0.0.0-...-46547a1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: ISC Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MTU = 1024

todo: configure this

Variables

This section is empty.

Functions

func New

func New(opts *Options) (tcpip.LinkEndpointID, *endpoint)

New creates a new endpoint for transmitting data using Amazon Cloudwathc gorups

func NewBridge

func NewBridge(opts *Options) (tcpip.LinkEndpointID, *endpointBridge)

New creates a new endpoint for transmitting data using Amazon Cloudwathc gorups

Types

type CloudwatchLinkAddress

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

func NewCloudwatchLinkAddress

func NewCloudwatchLinkAddress(laddr, raddr tcpip.LinkAddress, netName string) *CloudwatchLinkAddress

func (*CloudwatchLinkAddress) Dest

func (*CloudwatchLinkAddress) FullPath

func (cw *CloudwatchLinkAddress) FullPath() string

func (*CloudwatchLinkAddress) LogGroupName

func (cw *CloudwatchLinkAddress) LogGroupName() string

func (*CloudwatchLinkAddress) LogStreamName

func (cw *CloudwatchLinkAddress) LogStreamName() string

func (*CloudwatchLinkAddress) Src

type LogConfig

type LogConfig struct {
	LogService   cloudwatchlogsiface.CloudWatchLogsAPI
	Endpoint     stack.LinkEndpoint
	NetName      string
	LogGroupName string
}
type LogLink struct {
	// contains filtered or unexported fields
}

LogLink reads/writes L2 data to AWS service(s)

func NewLogLink(config *LogConfig) *LogLink

func (*LogLink) OpenLogStream

func (ll *LogLink) OpenLogStream(l CloudwatchLinkAddress) error

func (*LogLink) ProtocolToString

func (ll *LogLink) ProtocolToString(protocol tcpip.NetworkProtocolNumber) string

func (*LogLink) Read

func (ll *LogLink) Read() (*buffer.VectorisedView, error)

Read reads one packet from the internal buffers

func (*LogLink) Start

func (ll *LogLink) Start()

func (*LogLink) StringToProtocol

func (ll *LogLink) StringToProtocol(protocol string) tcpip.NetworkProtocolNumber

func (*LogLink) Write

func (ll *LogLink) Write(l CloudwatchLinkAddress, protocol tcpip.NetworkProtocolNumber, header []byte, payload []byte) (int, error)

Write writes one packet to the internal buffers

type Options

type Options struct {
	Address        tcpip.LinkAddress
	RemoteAddress  tcpip.LinkAddress // for point-to-point configuration
	PointToPoint   bool
	EthernetHeader bool
	NetworkName    string
	LinkEndpoint   tcpip.LinkEndpointID
}

type PacketLog

type PacketLog struct {
	Type    string `json:"type"`
	Src     string `json:"src"`
	Dest    string `json:"dest"`
	Header  string `json:"header"`
	Payload string `json:"payload"`
}

PacketLog represents the log event emitted from Amazon Cloudwatch

type PutEventInput

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

type ReadPollOutput

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

func (*ReadPollOutput) Data

func (p *ReadPollOutput) Data() []byte

func (*ReadPollOutput) Error

func (p *ReadPollOutput) Error() error

type ReadPoller

type ReadPoller struct {
	Cr chan ReadPollOutput
	// contains filtered or unexported fields
}

func (*ReadPoller) ReadPollForBroadcast

func (p *ReadPoller) ReadPollForBroadcast(groupName string)

func (*ReadPoller) ReadPollForLogGroup

func (p *ReadPoller) ReadPollForLogGroup(groupName string)

type WritePollInput

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

func NewWritePollInput

func NewWritePollInput(data []byte, link *CloudwatchLinkAddress) WritePollInput

type WritePoller

type WritePoller struct {
	Cw chan WritePollInput
	// contains filtered or unexported fields
}

func (*WritePoller) WritePoll

func (p *WritePoller) WritePoll()

Jump to

Keyboard shortcuts

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