Documentation ¶
Index ¶
- func AContext() gomock.Matcher
- func AssertContentToFile(t *testing.T, gotContent, wantFile string)
- func AssertFilesEquals(t *testing.T, gotPath, wantPath string)
- func Bundles(t *testing.T) *releasev1alpha1.Bundles
- func EksdRelease(t *testing.T) *eksdv1alpha1.Release
- func FakeNow() time.Time
- func NewClusterSpec(opts ...ClusterSpecOpt) *cluster.Spec
- func NewFullClusterSpec(t *testing.T, clusterConfigFile string) *cluster.Spec
- func NewHTTPServerForFile(t *testing.T, filePath string) *httptest.Server
- func NewNullLogger() logr.Logger
- func NewWriter(t *testing.T) (dir string, writer filewriter.FileWriter)
- func OfType(t string) gomock.Matcher
- func RandString(n int) string
- func ReadFile(t *testing.T, file string) string
- func SanitizePath(s string) string
- func SetTag(image *releasev1alpha1.Image, tag string)
- type ClusterSpecOpt
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AContext ¶ added in v0.9.0
AContext returns a gomock matchers that evaluates if the receive value can fullfills the context.Context interface
func AssertContentToFile ¶
func AssertFilesEquals ¶
func EksdRelease ¶ added in v0.8.0
func EksdRelease(t *testing.T) *eksdv1alpha1.Release
func NewClusterSpec ¶
func NewClusterSpec(opts ...ClusterSpecOpt) *cluster.Spec
func NewFullClusterSpec ¶
func NewHTTPServerForFile ¶ added in v0.9.0
func NewNullLogger ¶ added in v0.11.0
func NewWriter ¶
func NewWriter(t *testing.T) (dir string, writer filewriter.FileWriter)
func RandString ¶ added in v0.7.1
func SanitizePath ¶ added in v0.8.0
SanitizePath sanitizes s so its usable as a path name. For safety, it assumes all characters that are not A-Z, a-z, 0-9, _ or - are illegal and replaces them with _.
func SetTag ¶
func SetTag(image *releasev1alpha1.Image, tag string)
Types ¶
type ClusterSpecOpt ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.