Documentation
¶
Index ¶
- Constants
- func AddToFrameworkScheme(addToScheme addToSchemeFunc, obj dynclient.ObjectList) error
- func AssertEachMetric(namespace string, expectedMetrics map[string]int) error
- func CheckPodLimit(c kubernetes.Interface, podName, namespace, cpuLimit, memLimit string) wait.ConditionFunc
- func CheckPodPriorityClass(c kubernetes.Interface, podName, namespace, priorityClass string) wait.ConditionFunc
- func ExecCmd(cmd *exec.Cmd) error
- func GetGoPkg() string
- func GetKubeconfigAndNamespace(configPath string) (*rest.Config, string, error)
- func GetObjNameFromTest(t *testing.T) string
- func GetPoolNodeRoleSelector() map[string]string
- func GetRotationCheckerWorkload(namespace, rawResultName string) *core.Pod
- func GoBuild(opts GoCmdOptions) error
- func GoCmd(cmd string, opts GoCmdOptions) error
- func GoModOn() (bool, error)
- func IsRuleInProfile(ruleName string, profile *compv1alpha1.Profile) bool
- func MustGetwd() string
- func MustSetWdGopath(currentGopath string) string
- func ProcessErrorOrTimeout(err, timeoutErr error, message string) error
- func WaitForPod(podCallback wait.ConditionFunc) error
- type CleanupOptions
- type Context
- type ErrUnknownOperatorType
- type Framework
- func (f *Framework) ApplyRemediationAndCheck(namespace, name, pool string) error
- func (f *Framework) AssertCheckRemediation(name, namespace string, shouldHaveRem bool) error
- func (f *Framework) AssertComplianceSuiteDoesNotExist(name, namespace string) error
- func (f *Framework) AssertCronJobIsNotSuspended(name string) error
- func (f *Framework) AssertCronJobIsSuspended(name string) error
- func (f *Framework) AssertHasCheck(suiteName, scanName string, check compv1alpha1.ComplianceCheckResult) error
- func (f *Framework) AssertHasRemediations(suiteName, scanName, roleLabel string, remNameList []string) error
- func (f *Framework) AssertMetricsEndpointUsesHTTPVersion(endpoint, version string) error
- func (f *Framework) AssertMustHaveParsedProfiles(pbName, productType, productName string) error
- func (f *Framework) AssertProfileBundleMustHaveParsedRules(pbName string) error
- func (f *Framework) AssertProfileGUIDMatches(name, namespace, expectedGUID string) error
- func (f *Framework) AssertProfileInRuleAnnotation(r *compv1alpha1.Rule, expectedProfileId string) bool
- func (f *Framework) AssertRemediationDoesNotExists(name, namespace string) error
- func (f *Framework) AssertRemediationExists(name, namespace string) error
- func (f *Framework) AssertRemediationIsCurrent(namespace, name string) error
- func (f *Framework) AssertRemediationIsObsolete(namespace, name string) error
- func (f *Framework) AssertResultStorageHasExpectedItemsAfterRotation(expected int, namespace, checkerPodName string) error
- func (f *Framework) AssertRuleCheckTypeChangedAnnotationKey(namespace, ruleName, lastCheckType string) error
- func (f *Framework) AssertRuleIsNodeType(ruleName, namespace string) error
- func (f *Framework) AssertRuleIsPlatformType(ruleName, namespace string) error
- func (f *Framework) AssertScanDoesNotContainCheck(scanName, checkName, namespace string) error
- func (f *Framework) AssertScanDoesNotExist(name, namespace string) error
- func (f *Framework) AssertScanExists(name, namespace string) error
- func (f *Framework) AssertScanGUIDMatches(name, namespace, expectedGUID string) error
- func (f *Framework) AssertScanHasValidPVCReference(scanName, namespace string) error
- func (f *Framework) AssertScanHasValidPVCReferenceWithSize(scanName, size, namespace string) error
- func (f *Framework) AssertScanIsCompliant(name, namespace string) error
- func (f *Framework) AssertScanIsInError(name, namespace string) error
- func (f *Framework) AssertScanIsNonCompliant(name, namespace string) error
- func (f *Framework) AssertScanIsNotApplicable(name, namespace string) error
- func (f *Framework) AssertScanSettingBindingConditionIsReady(name string, namespace string) error
- func (f *Framework) AssertScanSettingBindingConditionIsSuspended(name string, namespace string) error
- func (f *Framework) CleanUpOnError() bool
- func (f *Framework) CreateAndRemoveEtcSecurettyOnNode(namespace, name, nodeName string) (*core.Pod, error)
- func (f *Framework) CreateImageStream(iSName, namespace, imgPath string) (*imagev1.ImageStream, error)
- func (f *Framework) DoesObjectExist(kind, namespace, name string) (error, bool)
- func (f *Framework) DoesRuleExist(namespace, ruleName string) (error, bool)
- func (f *Framework) EnableRuleExistInTailoredProfile(namespace, name, ruleName string) (bool, error)
- func (f *Framework) GetConfigMapsFromScan(scaninstance *compv1alpha1.ComplianceScan) ([]core.ConfigMap, error)
- func (f *Framework) GetImageStreamUpdatedDigest(iSName, namespace string) (string, error)
- func (f *Framework) GetNodesWithSelector(labelselector map[string]string) ([]core.Node, error)
- func (f *Framework) GetPodsForScan(scanName string) ([]core.Pod, error)
- func (f *Framework) GetRawResultClaimNameFromScan(namespace, scanName string) (string, error)
- func (f *Framework) GetReadyProfileBundle(name, namespace string) (*compv1alpha1.ProfileBundle, error)
- func (f *Framework) PauseMachinePool(poolName string) error
- func (f *Framework) PrintROSADebugInfo(t *testing.T)
- func (f *Framework) ReRunScan(scanName, namespace string) error
- func (f *Framework) RemoveObsoleteRemediationAndCheck(namespace, name, renderedMcName, pool string) error
- func (f *Framework) ResumeMachinePool(poolName string) error
- func (f *Framework) ScanHasWarnings(scanName, namespace string) error
- func (f *Framework) SetUp() error
- func (f *Framework) SuiteErrorMessageMatchesRegex(namespace, name, regexToMatch string) error
- func (f *Framework) TaintNode(node *core.Node, taint core.Taint) error
- func (f *Framework) TearDown() error
- func (f *Framework) UnApplyRemediationAndCheck(namespace, name, pool string) error
- func (f *Framework) UntaintNode(nodeName, taintKey string) error
- func (f *Framework) UpdateImageStreamTag(iSName, imagePath, namespace string) error
- func (f *Framework) UpdateSuiteContentImage(newImg, suiteName, suiteNs string) error
- func (f *Framework) WaitForCronJobWithSchedule(namespace, suiteName, schedule string) error
- func (f *Framework) WaitForDeployment(name string, replicas int, retryInterval, timeout time.Duration) error
- func (f *Framework) WaitForDeploymentContentUpdate(pbName, imgDigest string) error
- func (f *Framework) WaitForGenericRemediationToBeAutoApplied(remName, remNamespace string) error
- func (f *Framework) WaitForMachinePoolUpdate(name string, action machineConfigActionFunc, predicate poolPredicate, ...) error
- func (f *Framework) WaitForNodesToBeReady() error
- func (f *Framework) WaitForObjectToExist(name, namespace string, obj dynclient.Object) error
- func (f *Framework) WaitForObjectToUpdate(name, namespace string, obj ObjectResouceVersioner) error
- func (f *Framework) WaitForProfileBundleStatus(name string, status compv1alpha1.DataStreamStatusType) error
- func (f *Framework) WaitForReScanStatus(namespace, name string, targetStatus compv1alpha1.ComplianceScanStatusPhase) error
- func (f *Framework) WaitForRemediationState(name, namespace string, state compv1alpha1.RemediationApplicationState) error
- func (f *Framework) WaitForRemediationToBeAutoApplied(remName, remNamespace string, pool *mcfgv1.MachineConfigPool) error
- func (f *Framework) WaitForScanSettingBindingStatus(namespace, name string, ...) error
- func (f *Framework) WaitForScanStatus(namespace, name string, targetStatus compv1alpha1.ComplianceScanStatusPhase) error
- func (f *Framework) WaitForSuiteScansStatus(namespace, name string, targetStatus compv1alpha1.ComplianceScanStatusPhase, ...) error
- func (f *Framework) WaitForTailoredProfileStatus(namespace, name string, targetStatus compv1alpha1.TailoredProfileState) error
- type FrameworkClient
- type GoCmdOptions
- type GoTestOptions
- type ObjectResouceVersioner
- type OperatorType
- type Scanner
- type TestCtxdeprecated
Constants ¶
const ( RetryInterval = time.Second * 5 Timeout = time.Minute * 30 TestPoolName = "e2e" RhcosContentFile = "ssg-rhcos4-ds.xml" OcpContentFile = "ssg-ocp4-ds.xml" UnexistentResourceContentFile = "ocp4-unexistent-resource.xml" )
const ( // dirs CmdDir = "cmd" ManagerDir = CmdDir + filePathSep + "manager" BuildDir = "build" BuildBinDir = BuildDir + filePathSep + "_output" + filePathSep + "bin" )
from the old operator-sdk scaffold constants
const ( // KubeConfigEnvVar defines the env variable KUBECONFIG which // contains the kubeconfig file path. KubeConfigEnvVar = "KUBECONFIG" // WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE // which is the namespace where the watch activity happens. // this value is empty if the operator is running with clusterScope. WatchNamespaceEnvVar = "WATCH_NAMESPACE" )
const ( TestTypeAll = "all" TestTypeParallel = "parallel" TestTypeSerial = "serial" )
const ( ProjRootFlag = "root" KubeConfigFlag = "kubeconfig" NamespacedManPathFlag = "namespacedMan" GlobalManPathFlag = "globalMan" LocalOperatorFlag = "localOperator" LocalOperatorArgs = "localOperatorArgs" CleanupOnErrorFlag = "cleanupOnError" TestTypeFlag = "testType" PlatformFlag = "platform" TestOperatorNamespaceEnv = "TEST_OPERATOR_NAMESPACE" TestWatchNamespaceEnv = "TEST_WATCH_NAMESPACE" )
const ( GoPathEnv = "GOPATH" GoModEnv = "GO111MODULE" SrcDir = "src" )
Variables ¶
This section is empty.
Functions ¶
func AddToFrameworkScheme ¶
func AddToFrameworkScheme(addToScheme addToSchemeFunc, obj dynclient.ObjectList) error
AddToFrameworkScheme allows users to add the scheme for their custom resources to the framework's scheme for use with the dynamic client. The user provides the addToScheme function (located in the register.go file of their operator project) and the List struct for their custom resource. For example, for a memcached operator, the list stuct may look like: &MemcachedList{} The List object is needed because the CRD has not always been fully registered by the time this function is called. If the CRD takes more than 5 seconds to become ready, this function throws an error
func AssertEachMetric ¶ added in v1.1.0
func CheckPodLimit ¶ added in v1.1.0
func CheckPodLimit(c kubernetes.Interface, podName, namespace, cpuLimit, memLimit string) wait.ConditionFunc
func CheckPodPriorityClass ¶ added in v1.1.0
func CheckPodPriorityClass(c kubernetes.Interface, podName, namespace, priorityClass string) wait.ConditionFunc
func GetGoPkg ¶
func GetGoPkg() string
TODO(hasbro17): If this function is called in the subdir of a module project it will fail to parse go.mod and return the correct import path. This needs to be fixed to return the pkg import path for any subdir in order for `generate csv` to correctly form pkg imports for API pkg paths that are not relative to the root dir. This might not be fixable since there is no good way to get the project root from inside the subdir of a module project.
GetGoPkg returns the current directory's import path by parsing it from wd if this project's repository path is rooted under $GOPATH/src, or from go.mod the project uses Go modules to manage dependencies. If the project has a go.mod then wd must be the project root.
Example: "github.com/example-inc/app-operator"
func GetKubeconfigAndNamespace ¶
GetKubeconfigAndNamespace returns the *rest.Config and default namespace defined in the kubeconfig at the specified path. If no path is provided, returns the default *rest.Config and namespace
func GetObjNameFromTest ¶ added in v1.1.0
func GetPoolNodeRoleSelector ¶ added in v1.1.0
func GetRotationCheckerWorkload ¶ added in v1.1.0
func GoModOn ¶
From https://github.com/golang/go/wiki/Modules:
You can activate module support in one of two ways: - Invoke the go command in a directory with a valid go.mod file in the current directory or any parent of it and the environment variable GO111MODULE unset (or explicitly set to auto). - Invoke the go command with GO111MODULE=on environment variable set.
GoModOn returns true if Go modules are on in one of the above two ways.
func IsRuleInProfile ¶ added in v1.1.0
func IsRuleInProfile(ruleName string, profile *compv1alpha1.Profile) bool
func MustSetWdGopath ¶
MustSetWdGopath sets GOPATH to the first element of the path list in currentGopath that prefixes the wd, then returns the set path. If GOPATH cannot be set, MustSetWdGopath exits.
func ProcessErrorOrTimeout ¶ added in v1.1.0
func WaitForPod ¶ added in v1.1.0
func WaitForPod(podCallback wait.ConditionFunc) error
Types ¶
type CleanupOptions ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) AddCleanupFn ¶
func (ctx *Context) AddCleanupFn(fn cleanupFn)
func (*Context) GetOperatorNamespace ¶
GetOperatorNamespace will return an Operator Namespace, if the flag --operator-namespace not be used (TestOpeatorNamespaceEnv not set) then it will create a new namespace with randon name and return that namespace
func (*Context) GetTestType ¶
func (*Context) GetWatchNamespace ¶
GetWatchNamespace will return the namespaces to operator watch for changes, if the flag --watch-namespaced not be used then it will return the Operator Namespace.
type ErrUnknownOperatorType ¶
type ErrUnknownOperatorType struct {
Type string
}
func (ErrUnknownOperatorType) Error ¶
func (e ErrUnknownOperatorType) Error() string
type Framework ¶
type Framework struct { Client *frameworkClient KubeConfig *rest.Config KubeClient kubernetes.Interface Scheme *runtime.Scheme NamespacedManPath *string OperatorNamespace string WatchNamespace string Platform string LocalOperator bool // contains filtered or unexported fields }
var ( // Global framework struct Global *Framework )
func NewFramework ¶ added in v1.1.0
func NewFramework() *Framework
func (*Framework) ApplyRemediationAndCheck ¶ added in v1.1.0
func (*Framework) AssertCheckRemediation ¶ added in v1.1.0
func (*Framework) AssertComplianceSuiteDoesNotExist ¶ added in v1.4.0
func (*Framework) AssertCronJobIsNotSuspended ¶ added in v1.4.0
func (*Framework) AssertCronJobIsSuspended ¶ added in v1.4.0
func (*Framework) AssertHasCheck ¶ added in v1.1.0
func (f *Framework) AssertHasCheck(suiteName, scanName string, check compv1alpha1.ComplianceCheckResult) error
func (*Framework) AssertHasRemediations ¶ added in v1.1.0
func (*Framework) AssertMetricsEndpointUsesHTTPVersion ¶ added in v1.4.0
func (*Framework) AssertMustHaveParsedProfiles ¶ added in v1.1.0
func (*Framework) AssertProfileBundleMustHaveParsedRules ¶ added in v1.1.0
func (*Framework) AssertProfileGUIDMatches ¶ added in v1.5.0
AssertProfileGUIDMatches checks if the profile has the expected GUID
func (*Framework) AssertProfileInRuleAnnotation ¶ added in v1.4.0
func (f *Framework) AssertProfileInRuleAnnotation(r *compv1alpha1.Rule, expectedProfileId string) bool
func (*Framework) AssertRemediationDoesNotExists ¶ added in v1.4.0
func (*Framework) AssertRemediationExists ¶ added in v1.4.0
func (*Framework) AssertRemediationIsCurrent ¶ added in v1.1.0
func (*Framework) AssertRemediationIsObsolete ¶ added in v1.1.0
func (*Framework) AssertResultStorageHasExpectedItemsAfterRotation ¶ added in v1.1.0
func (*Framework) AssertRuleCheckTypeChangedAnnotationKey ¶ added in v1.4.0
func (f *Framework) AssertRuleCheckTypeChangedAnnotationKey(namespace, ruleName, lastCheckType string) error
AssertRuleCheckTypeChangedAnnotationKey asserts that the rule check type changed annotation key exists
func (*Framework) AssertRuleIsNodeType ¶ added in v1.4.0
func (*Framework) AssertRuleIsPlatformType ¶ added in v1.4.0
func (*Framework) AssertScanDoesNotContainCheck ¶ added in v1.4.0
func (*Framework) AssertScanDoesNotExist ¶ added in v1.4.0
func (*Framework) AssertScanExists ¶ added in v1.4.1
func (*Framework) AssertScanGUIDMatches ¶ added in v1.5.0
AssertScanGUIDMatches checks if the scan has the expected GUID
func (*Framework) AssertScanHasValidPVCReference ¶ added in v1.1.0
func (*Framework) AssertScanHasValidPVCReferenceWithSize ¶ added in v1.1.0
func (*Framework) AssertScanIsCompliant ¶ added in v1.1.0
func (*Framework) AssertScanIsInError ¶ added in v1.1.0
func (*Framework) AssertScanIsNonCompliant ¶ added in v1.1.0
func (*Framework) AssertScanIsNotApplicable ¶ added in v1.1.0
func (*Framework) AssertScanSettingBindingConditionIsReady ¶ added in v1.4.0
func (*Framework) AssertScanSettingBindingConditionIsSuspended ¶ added in v1.4.0
func (*Framework) CleanUpOnError ¶ added in v1.1.0
func (*Framework) CreateAndRemoveEtcSecurettyOnNode ¶ added in v1.1.0
func (f *Framework) CreateAndRemoveEtcSecurettyOnNode(namespace, name, nodeName string) (*core.Pod, error)
createAndRemoveEtcSecurettyOnNode creates a pod that creates the file /etc/securetty on node, returns the pod object for the caller to delete at which point the pod, before exiting, removes the file
func (*Framework) CreateImageStream ¶ added in v1.1.0
func (f *Framework) CreateImageStream(iSName, namespace, imgPath string) (*imagev1.ImageStream, error)
func (*Framework) DoesObjectExist ¶ added in v1.1.0
func (*Framework) DoesRuleExist ¶ added in v1.1.0
func (*Framework) EnableRuleExistInTailoredProfile ¶ added in v1.4.0
func (*Framework) GetConfigMapsFromScan ¶ added in v1.1.0
func (f *Framework) GetConfigMapsFromScan(scaninstance *compv1alpha1.ComplianceScan) ([]core.ConfigMap, error)
GetConfigMapsFromScan lists the configmaps from the specified openscap scan instance
func (*Framework) GetImageStreamUpdatedDigest ¶ added in v1.1.0
func (*Framework) GetNodesWithSelector ¶ added in v1.1.0
GetNodesWithSelector lists nodes according to a specific selector
func (*Framework) GetPodsForScan ¶ added in v1.1.0
func (*Framework) GetRawResultClaimNameFromScan ¶ added in v1.1.0
func (*Framework) GetReadyProfileBundle ¶ added in v1.1.0
func (f *Framework) GetReadyProfileBundle(name, namespace string) (*compv1alpha1.ProfileBundle, error)
func (*Framework) PauseMachinePool ¶ added in v1.1.0
func (*Framework) PrintROSADebugInfo ¶ added in v1.5.0
func (*Framework) RemoveObsoleteRemediationAndCheck ¶ added in v1.1.0
func (*Framework) ResumeMachinePool ¶ added in v1.1.0
func (*Framework) ScanHasWarnings ¶ added in v1.1.0
func (*Framework) SuiteErrorMessageMatchesRegex ¶ added in v1.1.0
func (*Framework) TearDown ¶ added in v1.1.0
tearDown performs any tasks necessary to cleanup resources leftover from testing and assumes a specific order. All namespaced resources must be cleaned up before deleting the cluster-wide resources, like roles, service accounts, or the deployment. If we don't properly cleanup resources before deleting CRDs, it leaves resources in a terminating state, making them harder to cleanup.
func (*Framework) UnApplyRemediationAndCheck ¶ added in v1.1.0
func (*Framework) UntaintNode ¶ added in v1.1.0
func (*Framework) UpdateImageStreamTag ¶ added in v1.1.0
func (*Framework) UpdateSuiteContentImage ¶ added in v1.1.0
func (*Framework) WaitForCronJobWithSchedule ¶ added in v1.1.0
func (*Framework) WaitForDeployment ¶ added in v1.1.0
func (*Framework) WaitForDeploymentContentUpdate ¶ added in v1.1.0
func (*Framework) WaitForGenericRemediationToBeAutoApplied ¶ added in v1.1.0
func (*Framework) WaitForMachinePoolUpdate ¶ added in v1.1.0
func (f *Framework) WaitForMachinePoolUpdate(name string, action machineConfigActionFunc, predicate poolPredicate, poolPre *mcfgv1.MachineConfigPool) error
waitForMachinePoolUpdate retrieves the original version of a MCP, then performs an action passed in as a parameter and then waits until a MCP passes a predicate If a pool is already given (poolPre), that will be used to check the previous state of the pool.
func (*Framework) WaitForNodesToBeReady ¶ added in v1.1.0
waitForNodesToBeReady waits until all the nodes in the cluster have reached the expected machineConfig.
func (*Framework) WaitForObjectToExist ¶ added in v1.1.0
func (*Framework) WaitForObjectToUpdate ¶ added in v1.1.0
func (f *Framework) WaitForObjectToUpdate(name, namespace string, obj ObjectResouceVersioner) error
func (*Framework) WaitForProfileBundleStatus ¶ added in v1.1.0
func (f *Framework) WaitForProfileBundleStatus(name string, status compv1alpha1.DataStreamStatusType) error
waitForProfileBundleStatus will poll until the compliancescan that we're lookingfor reaches a certain status, or until a timeout is reached.
func (*Framework) WaitForReScanStatus ¶ added in v1.1.0
func (f *Framework) WaitForReScanStatus(namespace, name string, targetStatus compv1alpha1.ComplianceScanStatusPhase) error
WaitForReScanStatus will poll until the compliancescan that we're lookingfor reaches a certain status for a re-scan, or until a timeout is reached.
func (*Framework) WaitForRemediationState ¶ added in v1.1.0
func (f *Framework) WaitForRemediationState(name, namespace string, state compv1alpha1.RemediationApplicationState) error
WaitForRemediationState will poll until the complianceRemediation that we're lookingfor gets applied, or until a timeout is reached.
func (*Framework) WaitForRemediationToBeAutoApplied ¶ added in v1.1.0
func (f *Framework) WaitForRemediationToBeAutoApplied(remName, remNamespace string, pool *mcfgv1.MachineConfigPool) error
func (*Framework) WaitForScanSettingBindingStatus ¶ added in v1.4.0
func (f *Framework) WaitForScanSettingBindingStatus(namespace, name string, targetStatus compv1alpha1.ScanSettingBindingStatusPhase) error
func (*Framework) WaitForScanStatus ¶ added in v1.1.0
func (f *Framework) WaitForScanStatus(namespace, name string, targetStatus compv1alpha1.ComplianceScanStatusPhase) error
func (*Framework) WaitForSuiteScansStatus ¶ added in v1.1.0
func (f *Framework) WaitForSuiteScansStatus(namespace, name string, targetStatus compv1alpha1.ComplianceScanStatusPhase, targetComplianceStatus compv1alpha1.ComplianceScanStatusResult) error
waitForScanStatus will poll until the compliancescan that we're lookingfor reaches a certain status, or until a timeout is reached.
func (*Framework) WaitForTailoredProfileStatus ¶ added in v1.4.0
func (f *Framework) WaitForTailoredProfileStatus(namespace, name string, targetStatus compv1alpha1.TailoredProfileState) error
type FrameworkClient ¶
type FrameworkClient interface { Get(gCtx goctx.Context, key dynclient.ObjectKey, obj dynclient.Object) error List(gCtx goctx.Context, list dynclient.ObjectList, opts ...dynclient.ListOption) error Create(gCtx goctx.Context, obj dynclient.Object, cleanupOptions *CleanupOptions) error Delete(gCtx goctx.Context, obj dynclient.Object, opts ...dynclient.DeleteOption) error Update(gCtx goctx.Context, obj dynclient.Object) error }
type GoCmdOptions ¶
type GoCmdOptions struct { // BinName is the name of the compiled binary, passed to -o. BinName string // Args are args passed to "go {cmd}", aside from "-o {bin_name}" and // test binary args. // These apply to build, clean, get, install, list, run, and test. Args []string // PackagePath is the path to the main (go build) or test (go test) packages. PackagePath string // Env is a list of environment variables to pass to the cmd; // exec.Command.Env is set to this value. Env []string // Dir is the dir to run "go {cmd}" in; exec.Command.Dir is set to this value. Dir string }
GoCmdOptions is the base option set for "go" subcommands.
type GoTestOptions ¶
type GoTestOptions struct { GoCmdOptions // TestBinaryArgs are args passed to the binary compiled by "go test". TestBinaryArgs []string }
GoTestOptions is the set of options for "go test".
type ObjectResouceVersioner ¶ added in v1.1.0
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans a yaml manifest file for manifest tokens delimited by "---". See bufio.Scanner for semantics.