hooks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeckhouseReleaseChecker

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

func NewDeckhouseReleaseChecker

func NewDeckhouseReleaseChecker(input *go_hook.HookInput, dc dependency.Container, releaseChannel string) (*DeckhouseReleaseChecker, error)

func (*DeckhouseReleaseChecker) CalculateReleaseDelay

func (dcr *DeckhouseReleaseChecker) CalculateReleaseDelay(clusterUUID string) *time.Time

func (*DeckhouseReleaseChecker) FetchReleaseMetadata

func (dcr *DeckhouseReleaseChecker) FetchReleaseMetadata(previousImageHash string) (digestHash string, err error)

func (*DeckhouseReleaseChecker) IsCanaryRelease

func (dcr *DeckhouseReleaseChecker) IsCanaryRelease() bool

type Duration

type Duration struct {
	time.Duration
}

custom type for appropriate json marshalling / unmarshalling (like "15m")

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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