gcr

package
Version: v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(payload []byte) (hooks.PushEvent, error)

Parse parses a payload into a GCR PushEvent

Types

type PushMessage

type PushMessage struct {
	Action string `json:"action,omitempty"`
	Digest string `json:"digest,omitempty"`
	Tag    string `json:"tag,omitempty"`
}

PushMessage is a struct for the GCR push event

func (PushMessage) EventRepository

func (m PushMessage) EventRepository() string

EventRepository is an implementation of the hooks.PushEvent interface.

func (PushMessage) EventTag

func (m PushMessage) EventTag() string

EventTag is an implementation of the hooks.PushEvent interface.

func (PushMessage) PushedImageURL

func (m PushMessage) PushedImageURL() string

PushedImageURL is an implementation of the hooks.PushEvent interface.

Source Files

Jump to

Keyboard shortcuts

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