Documentation ¶
Index ¶
Constants ¶
const ( Testdata124 = "1_24" Testdata125 = "1_25" Testdata126 = "1_26" Testdata127 = "1_27" Testdata128 = "1_28" )
Variables ¶
This section is empty.
Functions ¶
func IsBelow ¶ added in v3.2.1
IsBelow returns true when a is below b in the versions we have test data for. It assumes test data for both versions exists and the corresponding `AllVersions()` list is properly sorted.
func NewIntegration ¶
func NewIntegration(t *testing.T) *integration.Integration
NewIntegration returns a new integration.Integration ready for use in testing and mocks. Integration will use the test name and will fail the test if creation is unsuccessful.
Types ¶
type K8s ¶
type K8s struct {
// contains filtered or unexported fields
}
func (K8s) Everything ¶
func (K8s) Namespaces ¶
type Server ¶
func (*Server) ControlPlaneEndpoint ¶
func (*Server) KSMEndpoint ¶
func (*Server) KubeletEndpoint ¶
type Version ¶
type Version string
Version represents a kubernetes version. Mock servers can be instantiated to return known output for a given version.
func AllVersions ¶
func AllVersions() []Version
AllVersions returns a list of versions we have test data for. PLEASE ADD NEW VERSIONS HERE AS WELL. PLEASE KEEP THIS LIST SORTED, WITH NEWER RELEASES LAST IN THE LIST.
func LatestVersion ¶
func LatestVersion() Version
LatestVersion returns the latest version we have test data for.