package
0.0.0-20250303095208-d379ee86d136
Repository: https://github.com/codeready-toolchain/toolchain-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AssertConditionsMatch asserts that the specified list A of conditions is equal to specified list B of conditions ignoring the order of the elements.
AssertConditionsMatchAndRecentTimestamps asserts that the specified list of conditions match AND asserts that the timestamps are recent.
AssertContainsCondition asserts that the specified list of conditions contains the specified condition.
AssertContainsMember asserts that the specified list of members contains the specified member.
AssertHostOperatorStatusMatch asserts that the specified host operator status matches the expected host operator status.
AssertMembersMatch asserts that the specified list A of members is equal to specified list B of members ignoring the order of the elements.
AssertRegistrationServiceDeploymentStatusMatch asserts that the specified registration service deployment status matches the expected one.
AssertRegistrationServiceHealthStatusMatch asserts that the specified registration service health status matches the expected one.
AssertRegistrationServiceResourcesStatusMatch asserts that the specified registration service resources status matches the expected one.
AssertRegistrationServiceRevisionMatch asserts that the specified registration service revision check matches the expected one.
AssertRegistrationServiceStatusMatch asserts that the specified registration service status matches the expected one.
AssertTimestampsAreRecent asserts that the timestamps for the provided list of conditions are recent.
ConditionsMatch returns true if the specified list A of conditions is equal to specified list B of conditions ignoring the order of the elements.
ContainsCondition returns true if the specified list of conditions contains the specified condition.
No description provided by the author
No description provided by the author
CreateTemplate joins template skeleton with the given template objects and template params and returns a string containing YAML template.
DecodeTemplate decodes the given string using the given decoder to an instance of a Template.
No description provided by the author
MockGitHubClientForRepositoryCommits provides a GitHub client which will return the given commit and commit timestamp as a response.
MockGithubRepositoryCommit creates a http handler that returns a commit for a given org/repo.
No description provided by the author
No description provided by the author
NewFakeClient creates a fake K8s client with ability to override specific Get/List/Create/Update/StatusUpdate/Delete functions.
NewMockedGithubCommit create a GitHub.Commit object with given SHA and timestamp.
No description provided by the author
NewRESTClient returns a new kube api rest client.
No description provided by the author
No description provided by the author
SetEnvVarAndRestore sets the given environment variable with the key to the given value.
SetEnvVarsAndRestore sets the given environment variables with the keys to the given values.
SetupGockForServiceAccounts registers the /namespaces/<namespace>/serviceaccounts/<serviceaccount>/token endpoint with gock.
No description provided by the author
UnsetEnvVarAndRestore unsets the given environment variable with the key (if present).
No description provided by the author
WithObjects takes list of template objects and joins them together.
WithParams takes list of template parameters and joins them together.

# Constants

template parameters.
template objects.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
template objects.
template objects.
template parameters.
template objects.
template objects.
template objects.
template objects.
template objects.
template parameters.
template parameters.
template parameters.

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Interfaces

T our minimal testing interface for our custom assertions.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author