Documentation ¶
Index ¶
- Constants
- func MigrateToV2(ctx context.Context, db *sql.DB, shouldMigrateV1Policies bool) error
- func MigrationStatus(ctx context.Context, db *sql.DB) (isOnV1, isDirty bool, err error)
- func NewEffect(in string) (v2Effect, error)
- func NewType(in string) (v2Type, error)
- func RecordMigrationStatus(ctx context.Context, ms string, db *sql.DB) error
- func ResetIAMDb(ctx context.Context, db *sql.DB) error
Constants ¶
View Source
const ( // Custom represents a policy created by the enduser. Custom v2Type = iota // ChefManaged represents a policy created by Chef Software. ChefManaged // System represents a policy that is only loaded directly into OPA // to allow Automate to function correctly without revealing Automate's // internal policies to the customer // This type is only used in the OPA cache (not in API or database) System )
View Source
const ( // Allow represents the allow case for a Statement Effect. Allow v2Effect = iota // Deny represents the deny case for a Statement Effect. Deny )
Variables ¶
This section is empty.
Functions ¶
func MigrateToV2 ¶
MigrateToV2 inserts needed IAM v2 resources into the db and migrates any valid v1 policies
func MigrationStatus ¶
func RecordMigrationStatus ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.