pkg

package
v0.0.0-...-cfab337 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCRMessage

type GCRMessage struct {
	Action string `json:"action"`
	Digest string `json:"digest"`
	Tag    string `json:"tag"`
}
{
	Action:"INSERT",
	Digest:"gcr.io/alex-dev-ne8701/testing@sha256:0b1e25fb646c62aff375bd5e6eb1b26a81abf2e9f5abb41f98acc88789c75434",
	Tag:"gcr.io/alex-dev-ne8701/testing:873245"
}

type GCRSubscriber

type GCRSubscriber struct {
	EventChan chan GCRMessage
	// contains filtered or unexported fields
}

func NewGCRSubscriber

func NewGCRSubscriber(ctx context.Context, projectID, topicID, subID string) (*GCRSubscriber, error)

func (*GCRSubscriber) SendNotification

func (s *GCRSubscriber) SendNotification(msg GCRMessage, fluxRPC *rpc.RPCClientV11) error

func (*GCRSubscriber) Subscriber

func (s *GCRSubscriber) Subscriber() error

Jump to

Keyboard shortcuts

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