Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapGroup(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BootstrapMetadataKey(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BootstrapOrganization(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BootstrapProject(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BootstrapUser(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BuildAPIDependenciesAndMigrate(ctx context.Context, logger *log.Zap, ...) (api.Deps, error)
- func CreateClient(ctx context.Context, host string) (shieldv1beta1.ShieldServiceClient, func(), error)
- func GetFreePort() (int, error)
- func ServeProxies(ctx context.Context, logger *log.Zap, ...) ([]func() error, []func(ctx context.Context) error, error)
- func SetupDB(cfg db.Config) (dbc *db.Client, err error)
- type TestBench
Constants ¶
View Source
const ( OrgAdminEmail = "admin1-group1-org1@odpf.io" IdentityHeader = "X-Shield-Email" )
Variables ¶
View Source
var (
RuleCacheRefreshDelay = time.Minute * 2
)
Functions ¶
func BootstrapGroup ¶ added in v0.4.1
func BootstrapGroup(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapMetadataKey ¶ added in v0.4.1
func BootstrapMetadataKey(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapOrganization ¶ added in v0.4.1
func BootstrapOrganization(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapProject ¶ added in v0.4.1
func BootstrapProject(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapUser ¶ added in v0.4.1
func BootstrapUser(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BuildAPIDependenciesAndMigrate ¶ added in v0.5.1
func CreateClient ¶ added in v0.4.1
func CreateClient(ctx context.Context, host string) (shieldv1beta1.ShieldServiceClient, func(), error)
func GetFreePort ¶ added in v0.4.1
func ServeProxies ¶ added in v0.5.1
func ServeProxies( ctx context.Context, logger *log.Zap, identityProxyHeaderKey, userIDHeaderKey string, cfg proxy.ServicesConfig, resourceService *resource.Service, relationService *relation.Service, userService *user.Service, projectService *project.Service, ) ([]func() error, []func(ctx context.Context) error, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.