checker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker is the main structure of checking if we're in Test Freeze.

func New

func New(log *logrus.Entry) *Checker

New creates a new Checker instance.

func (*Checker) InTestFreeze

func (c *Checker) InTestFreeze() (*Result, error)

InTestFreeze returns if we're in Test Freeze: https://github.com/kubernetes/sig-release/blob/2d8a1cc/releases/release_phases.md#test-freeze It errors in case of any issue.

type Result

type Result struct {
	// InTestFreeze is true if we're in Test Freeze.
	InTestFreeze bool

	// Branch is the found latest release branch.
	Branch string

	// Tag is the latest minor release tag to be expected.
	Tag string

	// LastFastForward specifies the latest point int time when a fast forward
	// was successful.
	LastFastForward string
}

Result is the result returned by `InTestFreeze`.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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