testutil

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

This file is part of kuberpult.

Kuberpult is free software: you can redistribute it and/or modify it under the terms of the Expat(MIT) License as published by the Free Software Foundation.

Kuberpult is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT License for more details.

You should have received a copy of the MIT License along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>.

This file is part of kuberpult.

Kuberpult is free software: you can redistribute it and/or modify it under the terms of the Expat(MIT) License as published by the Free Software Foundation.

Kuberpult is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT License for more details.

You should have received a copy of the MIT License along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>.

Copyright 2023 freiheit.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEnvConfigLatestWithGroup

func MakeEnvConfigLatestWithGroup(argoCd *config.EnvironmentConfigArgoCd, envGroup *string) config.EnvironmentConfig

func MakeEnvConfigUpstream

func MakeEnvConfigUpstream(upstream string, argoCd *config.EnvironmentConfigArgoCd) config.EnvironmentConfig

func MakeTestContext

func MakeTestContext() context.Context

func MakeTestContextDexEnabled

func MakeTestContextDexEnabled() context.Context

func MakeTestContextDexEnabledUser

func MakeTestContextDexEnabledUser(role string) context.Context

Types

type TestGenerator

type TestGenerator struct {
	Time time.Time
}

func (TestGenerator) Generate

func (t TestGenerator) Generate() string

Jump to

Keyboard shortcuts

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