deckhouseversion

package
v1.76.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name extenders.ExtenderName = "DeckhouseVersion"
)
View Source
const TestExtenderDeckhouseVersionEnv = "TEST_EXTENDER_DECKHOUSE_VERSION"

Variables

This section is empty.

Functions

This section is empty.

Types

type Extender

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

func NewExtender added in v1.71.0

func NewExtender(deckhouseVersion string, logger *log.Logger) *Extender

func (*Extender) AddConstraint

func (e *Extender) AddConstraint(name, rawConstraint string) error

func (*Extender) DeleteConstraint

func (e *Extender) DeleteConstraint(name string)

func (*Extender) Filter

func (e *Extender) Filter(name string, _ map[string]string) (*bool, error)

Filter implements Extender interface, it is used by scheduler in addon-operator

func (*Extender) IsTerminator

func (e *Extender) IsTerminator() bool

IsTerminator implements Extender interface, it is used by scheduler in addon-operator

func (*Extender) Name

func (e *Extender) Name() extenders.ExtenderName

Name implements Extender interface, it is used by scheduler in addon-operator

func (*Extender) ValidateBaseVersion

func (e *Extender) ValidateBaseVersion(baseVersion string) (string, error)

func (*Extender) ValidateRelease

func (e *Extender) ValidateRelease(releaseName, rawConstraint string) error

type IExtender added in v1.76.1

type IExtender interface {
	extenders.Extender

	AddConstraint(name, rawConstraint string) error
	DeleteConstraint(name string)
	ValidateBaseVersion(baseVersion string) (string, error)
	ValidateRelease(releaseName, rawConstraint string) error
}

type IExtenderMock added in v1.76.1

type IExtenderMock struct {
	AddConstraintMock mIExtenderMockAddConstraint

	DeleteConstraintMock mIExtenderMockDeleteConstraint

	FilterMock mIExtenderMockFilter

	IsTerminatorMock mIExtenderMockIsTerminator

	NameMock mIExtenderMockName

	ValidateBaseVersionMock mIExtenderMockValidateBaseVersion

	ValidateReleaseMock mIExtenderMockValidateRelease
	// contains filtered or unexported fields
}

IExtenderMock implements IExtender

func NewIExtenderMock added in v1.76.1

func NewIExtenderMock(t minimock.Tester) *IExtenderMock

NewIExtenderMock returns a mock for IExtender

func (*IExtenderMock) AddConstraint added in v1.76.1

func (mmAddConstraint *IExtenderMock) AddConstraint(name string, rawConstraint string) (err error)

AddConstraint implements IExtender

func (*IExtenderMock) AddConstraintAfterCounter added in v1.76.1

func (mmAddConstraint *IExtenderMock) AddConstraintAfterCounter() uint64

AddConstraintAfterCounter returns a count of finished IExtenderMock.AddConstraint invocations

func (*IExtenderMock) AddConstraintBeforeCounter added in v1.76.1

func (mmAddConstraint *IExtenderMock) AddConstraintBeforeCounter() uint64

AddConstraintBeforeCounter returns a count of IExtenderMock.AddConstraint invocations

func (*IExtenderMock) DeleteConstraint added in v1.76.1

func (mmDeleteConstraint *IExtenderMock) DeleteConstraint(name string)

DeleteConstraint implements IExtender

func (*IExtenderMock) DeleteConstraintAfterCounter added in v1.76.1

func (mmDeleteConstraint *IExtenderMock) DeleteConstraintAfterCounter() uint64

DeleteConstraintAfterCounter returns a count of finished IExtenderMock.DeleteConstraint invocations

func (*IExtenderMock) DeleteConstraintBeforeCounter added in v1.76.1

func (mmDeleteConstraint *IExtenderMock) DeleteConstraintBeforeCounter() uint64

DeleteConstraintBeforeCounter returns a count of IExtenderMock.DeleteConstraint invocations

func (*IExtenderMock) Filter added in v1.76.1

func (mmFilter *IExtenderMock) Filter(moduleName string, logLabels map[string]string) (bp1 *bool, err error)

Filter implements IExtender

func (*IExtenderMock) FilterAfterCounter added in v1.76.1

func (mmFilter *IExtenderMock) FilterAfterCounter() uint64

FilterAfterCounter returns a count of finished IExtenderMock.Filter invocations

func (*IExtenderMock) FilterBeforeCounter added in v1.76.1

func (mmFilter *IExtenderMock) FilterBeforeCounter() uint64

FilterBeforeCounter returns a count of IExtenderMock.Filter invocations

func (*IExtenderMock) IsTerminator added in v1.76.1

func (mmIsTerminator *IExtenderMock) IsTerminator() (b1 bool)

IsTerminator implements IExtender

func (*IExtenderMock) IsTerminatorAfterCounter added in v1.76.1

func (mmIsTerminator *IExtenderMock) IsTerminatorAfterCounter() uint64

IsTerminatorAfterCounter returns a count of finished IExtenderMock.IsTerminator invocations

func (*IExtenderMock) IsTerminatorBeforeCounter added in v1.76.1

func (mmIsTerminator *IExtenderMock) IsTerminatorBeforeCounter() uint64

IsTerminatorBeforeCounter returns a count of IExtenderMock.IsTerminator invocations

func (*IExtenderMock) MinimockAddConstraintDone added in v1.76.1

func (m *IExtenderMock) MinimockAddConstraintDone() bool

MinimockAddConstraintDone returns true if the count of the AddConstraint invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockAddConstraintInspect added in v1.76.1

func (m *IExtenderMock) MinimockAddConstraintInspect()

MinimockAddConstraintInspect logs each unmet expectation

func (*IExtenderMock) MinimockDeleteConstraintDone added in v1.76.1

func (m *IExtenderMock) MinimockDeleteConstraintDone() bool

MinimockDeleteConstraintDone returns true if the count of the DeleteConstraint invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockDeleteConstraintInspect added in v1.76.1

func (m *IExtenderMock) MinimockDeleteConstraintInspect()

MinimockDeleteConstraintInspect logs each unmet expectation

func (*IExtenderMock) MinimockFilterDone added in v1.76.1

func (m *IExtenderMock) MinimockFilterDone() bool

MinimockFilterDone returns true if the count of the Filter invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockFilterInspect added in v1.76.1

func (m *IExtenderMock) MinimockFilterInspect()

MinimockFilterInspect logs each unmet expectation

func (*IExtenderMock) MinimockFinish added in v1.76.1

func (m *IExtenderMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*IExtenderMock) MinimockIsTerminatorDone added in v1.76.1

func (m *IExtenderMock) MinimockIsTerminatorDone() bool

MinimockIsTerminatorDone returns true if the count of the IsTerminator invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockIsTerminatorInspect added in v1.76.1

func (m *IExtenderMock) MinimockIsTerminatorInspect()

MinimockIsTerminatorInspect logs each unmet expectation

func (*IExtenderMock) MinimockNameDone added in v1.76.1

func (m *IExtenderMock) MinimockNameDone() bool

MinimockNameDone returns true if the count of the Name invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockNameInspect added in v1.76.1

func (m *IExtenderMock) MinimockNameInspect()

MinimockNameInspect logs each unmet expectation

func (*IExtenderMock) MinimockValidateBaseVersionDone added in v1.76.1

func (m *IExtenderMock) MinimockValidateBaseVersionDone() bool

MinimockValidateBaseVersionDone returns true if the count of the ValidateBaseVersion invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockValidateBaseVersionInspect added in v1.76.1

func (m *IExtenderMock) MinimockValidateBaseVersionInspect()

MinimockValidateBaseVersionInspect logs each unmet expectation

func (*IExtenderMock) MinimockValidateReleaseDone added in v1.76.1

func (m *IExtenderMock) MinimockValidateReleaseDone() bool

MinimockValidateReleaseDone returns true if the count of the ValidateRelease invocations corresponds the number of defined expectations

func (*IExtenderMock) MinimockValidateReleaseInspect added in v1.76.1

func (m *IExtenderMock) MinimockValidateReleaseInspect()

MinimockValidateReleaseInspect logs each unmet expectation

func (*IExtenderMock) MinimockWait added in v1.76.1

func (m *IExtenderMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*IExtenderMock) Name added in v1.76.1

func (mmName *IExtenderMock) Name() (e1 extenders.ExtenderName)

Name implements IExtender

func (*IExtenderMock) NameAfterCounter added in v1.76.1

func (mmName *IExtenderMock) NameAfterCounter() uint64

NameAfterCounter returns a count of finished IExtenderMock.Name invocations

func (*IExtenderMock) NameBeforeCounter added in v1.76.1

func (mmName *IExtenderMock) NameBeforeCounter() uint64

NameBeforeCounter returns a count of IExtenderMock.Name invocations

func (*IExtenderMock) ValidateBaseVersion added in v1.76.1

func (mmValidateBaseVersion *IExtenderMock) ValidateBaseVersion(baseVersion string) (s1 string, err error)

ValidateBaseVersion implements IExtender

func (*IExtenderMock) ValidateBaseVersionAfterCounter added in v1.76.1

func (mmValidateBaseVersion *IExtenderMock) ValidateBaseVersionAfterCounter() uint64

ValidateBaseVersionAfterCounter returns a count of finished IExtenderMock.ValidateBaseVersion invocations

func (*IExtenderMock) ValidateBaseVersionBeforeCounter added in v1.76.1

func (mmValidateBaseVersion *IExtenderMock) ValidateBaseVersionBeforeCounter() uint64

ValidateBaseVersionBeforeCounter returns a count of IExtenderMock.ValidateBaseVersion invocations

func (*IExtenderMock) ValidateRelease added in v1.76.1

func (mmValidateRelease *IExtenderMock) ValidateRelease(releaseName string, rawConstraint string) (err error)

ValidateRelease implements IExtender

func (*IExtenderMock) ValidateReleaseAfterCounter added in v1.76.1

func (mmValidateRelease *IExtenderMock) ValidateReleaseAfterCounter() uint64

ValidateReleaseAfterCounter returns a count of finished IExtenderMock.ValidateRelease invocations

func (*IExtenderMock) ValidateReleaseBeforeCounter added in v1.76.1

func (mmValidateRelease *IExtenderMock) ValidateReleaseBeforeCounter() uint64

ValidateReleaseBeforeCounter returns a count of IExtenderMock.ValidateRelease invocations

type IExtenderMockAddConstraintExpectation added in v1.76.1

type IExtenderMockAddConstraintExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockAddConstraintExpectation specifies expectation struct of the IExtender.AddConstraint

func (*IExtenderMockAddConstraintExpectation) Then added in v1.76.1

Then sets up IExtender.AddConstraint return parameters for the expectation previously defined by the When method

type IExtenderMockAddConstraintExpectationOrigins added in v1.76.1

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

IExtenderMockAddConstraintOrigins contains origins of expectations of the IExtender.AddConstraint

type IExtenderMockAddConstraintParamPtrs added in v1.76.1

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

IExtenderMockAddConstraintParamPtrs contains pointers to parameters of the IExtender.AddConstraint

type IExtenderMockAddConstraintParams added in v1.76.1

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

IExtenderMockAddConstraintParams contains parameters of the IExtender.AddConstraint

type IExtenderMockAddConstraintResults added in v1.76.1

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

IExtenderMockAddConstraintResults contains results of the IExtender.AddConstraint

type IExtenderMockDeleteConstraintExpectation added in v1.76.1

type IExtenderMockDeleteConstraintExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockDeleteConstraintExpectation specifies expectation struct of the IExtender.DeleteConstraint

func (*IExtenderMockDeleteConstraintExpectation) Then added in v1.76.1

type IExtenderMockDeleteConstraintExpectationOrigins added in v1.76.1

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

IExtenderMockDeleteConstraintOrigins contains origins of expectations of the IExtender.DeleteConstraint

type IExtenderMockDeleteConstraintParamPtrs added in v1.76.1

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

IExtenderMockDeleteConstraintParamPtrs contains pointers to parameters of the IExtender.DeleteConstraint

type IExtenderMockDeleteConstraintParams added in v1.76.1

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

IExtenderMockDeleteConstraintParams contains parameters of the IExtender.DeleteConstraint

type IExtenderMockFilterExpectation added in v1.76.1

type IExtenderMockFilterExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockFilterExpectation specifies expectation struct of the IExtender.Filter

func (*IExtenderMockFilterExpectation) Then added in v1.76.1

Then sets up IExtender.Filter return parameters for the expectation previously defined by the When method

type IExtenderMockFilterExpectationOrigins added in v1.76.1

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

IExtenderMockFilterOrigins contains origins of expectations of the IExtender.Filter

type IExtenderMockFilterParamPtrs added in v1.76.1

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

IExtenderMockFilterParamPtrs contains pointers to parameters of the IExtender.Filter

type IExtenderMockFilterParams added in v1.76.1

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

IExtenderMockFilterParams contains parameters of the IExtender.Filter

type IExtenderMockFilterResults added in v1.76.1

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

IExtenderMockFilterResults contains results of the IExtender.Filter

type IExtenderMockIsTerminatorExpectation added in v1.76.1

type IExtenderMockIsTerminatorExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockIsTerminatorExpectation specifies expectation struct of the IExtender.IsTerminator

type IExtenderMockIsTerminatorResults added in v1.76.1

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

IExtenderMockIsTerminatorResults contains results of the IExtender.IsTerminator

type IExtenderMockNameExpectation added in v1.76.1

type IExtenderMockNameExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockNameExpectation specifies expectation struct of the IExtender.Name

type IExtenderMockNameResults added in v1.76.1

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

IExtenderMockNameResults contains results of the IExtender.Name

type IExtenderMockValidateBaseVersionExpectation added in v1.76.1

type IExtenderMockValidateBaseVersionExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockValidateBaseVersionExpectation specifies expectation struct of the IExtender.ValidateBaseVersion

func (*IExtenderMockValidateBaseVersionExpectation) Then added in v1.76.1

Then sets up IExtender.ValidateBaseVersion return parameters for the expectation previously defined by the When method

type IExtenderMockValidateBaseVersionExpectationOrigins added in v1.76.1

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

IExtenderMockValidateBaseVersionOrigins contains origins of expectations of the IExtender.ValidateBaseVersion

type IExtenderMockValidateBaseVersionParamPtrs added in v1.76.1

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

IExtenderMockValidateBaseVersionParamPtrs contains pointers to parameters of the IExtender.ValidateBaseVersion

type IExtenderMockValidateBaseVersionParams added in v1.76.1

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

IExtenderMockValidateBaseVersionParams contains parameters of the IExtender.ValidateBaseVersion

type IExtenderMockValidateBaseVersionResults added in v1.76.1

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

IExtenderMockValidateBaseVersionResults contains results of the IExtender.ValidateBaseVersion

type IExtenderMockValidateReleaseExpectation added in v1.76.1

type IExtenderMockValidateReleaseExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

IExtenderMockValidateReleaseExpectation specifies expectation struct of the IExtender.ValidateRelease

func (*IExtenderMockValidateReleaseExpectation) Then added in v1.76.1

Then sets up IExtender.ValidateRelease return parameters for the expectation previously defined by the When method

type IExtenderMockValidateReleaseExpectationOrigins added in v1.76.1

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

IExtenderMockValidateReleaseOrigins contains origins of expectations of the IExtender.ValidateRelease

type IExtenderMockValidateReleaseParamPtrs added in v1.76.1

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

IExtenderMockValidateReleaseParamPtrs contains pointers to parameters of the IExtender.ValidateRelease

type IExtenderMockValidateReleaseParams added in v1.76.1

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

IExtenderMockValidateReleaseParams contains parameters of the IExtender.ValidateRelease

type IExtenderMockValidateReleaseResults added in v1.76.1

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

IExtenderMockValidateReleaseResults contains results of the IExtender.ValidateRelease

Jump to

Keyboard shortcuts

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