Documentation ¶
Index ¶
- Constants
- Variables
- func AssignGroupManager(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
- 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 BootstrapResource(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BootstrapServiceDataKey(ctx context.Context, cl shieldv1beta1.ServiceDataServiceClient, ...) error
- func BootstrapUser(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, ...) error
- func BootstrapUserServiceData(ctx context.Context, cl shieldv1beta1.ServiceDataServiceClient, ...) error
- func CreateClient(ctx context.Context, host string) (shieldv1beta1.ShieldServiceClient, func(), error)
- func CreateServiceDataClient(ctx context.Context, host string) (shieldv1beta1.ServiceDataServiceClient, func(), error)
- func GetFreePort() (int, error)
- func SetupDB(cfg db.Config) (dbc *db.Client, err error)
- func SetupTests(t *testing.T) (shieldv1beta1.ShieldServiceClient, shieldv1beta1.ServiceDataServiceClient, ...)
- type TestBench
Constants ¶
View Source
const ( OrgAdminEmail = "admin1-group1-org1@gotocompany.com" DefaultSystemEmail = "shield-service@gotocompany.com" IdentityHeader = "X-Shield-Email" DefaultServiceDataProjectName = "system" )
Variables ¶
View Source
var RuleCacheRefreshDelay = time.Minute * 2
Functions ¶
func AssignGroupManager ¶ added in v0.6.6
func AssignGroupManager(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
func BootstrapGroup ¶
func BootstrapGroup(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapMetadataKey ¶
func BootstrapMetadataKey(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapOrganization ¶
func BootstrapOrganization(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapProject ¶
func BootstrapProject(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapResource ¶ added in v0.6.22
func BootstrapResource(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapServiceDataKey ¶ added in v0.6.29
func BootstrapServiceDataKey(ctx context.Context, cl shieldv1beta1.ServiceDataServiceClient, creatorEmail, defaultServiceDataProjectName, testDataPath string) error
func BootstrapUser ¶
func BootstrapUser(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string, testDataPath string) error
func BootstrapUserServiceData ¶ added in v0.6.29
func BootstrapUserServiceData(ctx context.Context, cl shieldv1beta1.ServiceDataServiceClient, userID, creatorEmail, defaultServiceDataProjectName, testDataPath string) error
func CreateClient ¶
func CreateClient(ctx context.Context, host string) (shieldv1beta1.ShieldServiceClient, func(), error)
func CreateServiceDataClient ¶ added in v0.6.22
func CreateServiceDataClient(ctx context.Context, host string) (shieldv1beta1.ServiceDataServiceClient, func(), error)
func GetFreePort ¶
func SetupTests ¶ added in v0.6.5
func SetupTests(t *testing.T) (shieldv1beta1.ShieldServiceClient, shieldv1beta1.ServiceDataServiceClient, *config.Shield, func(), func(), func())
Types ¶
Click to show internal directories.
Click to hide internal directories.