Documentation
¶
Index ¶
- Constants
- Variables
- func BootstrapGroup(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
- func BootstrapOrganizations(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
- func BootstrapProject(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
- func BootstrapUsers(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
- func CreateAdminClient(ctx context.Context, host string) (shieldv1beta1.AdminServiceClient, func() error, error)
- func CreateClient(ctx context.Context, host string) (shieldv1beta1.ShieldServiceClient, func() error, error)
- func EchoServer(network *docker.Network, pool *dockertest.Pool) (string, *dockertest.Resource, error)
- func GetFreePort() (int, error)
- func MigrateShield(logger *log.Zap, appConfig *config.Shield) error
- func StartPG(network *docker.Network, pool *dockertest.Pool, dbName string) (connStringInternal, connStringExternal string, res *dockertest.Resource, ...)
- func StartShield(logger *log.Zap, appConfig *config.Shield)
- func StartSpiceDB(logger log.Logger, network *docker.Network, pool *dockertest.Pool, ...) (extPort string, close func() error, err error)
- type TestBench
Constants ¶
View Source
const ( OrgAdminEmail = "admin1-group1-org1@raystack.org" IdentityHeader = "X-Shield-Email" )
Variables ¶
View Source
var (
RuleCacheRefreshDelay = time.Minute * 2
)
Functions ¶
func BootstrapGroup ¶
func BootstrapGroup(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
func BootstrapOrganizations ¶
func BootstrapOrganizations(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
func BootstrapProject ¶
func BootstrapProject(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
func BootstrapUsers ¶
func BootstrapUsers(ctx context.Context, cl shieldv1beta1.ShieldServiceClient, creatorEmail string) error
func CreateAdminClient ¶
func CreateAdminClient(ctx context.Context, host string) (shieldv1beta1.AdminServiceClient, func() error, error)
func CreateClient ¶
func CreateClient(ctx context.Context, host string) (shieldv1beta1.ShieldServiceClient, func() error, error)
func EchoServer ¶
func EchoServer(network *docker.Network, pool *dockertest.Pool) (string, *dockertest.Resource, error)
func GetFreePort ¶
Types ¶
type TestBench ¶
type TestBench struct {
Pool *dockertest.Pool
Network *docker.Network
Resources []*dockertest.Resource
Client shieldv1beta1.ShieldServiceClient
AdminClient shieldv1beta1.AdminServiceClient
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.