Documentation
¶
Index ¶
- Variables
- func BindRpcFunction(rpc raiden.Rpc, fn *objects.Function) (err error)
- func BindToSupabaseRole(r *objects.Role, role raiden.Role)
- func BindToSupabaseStorage(s *objects.Bucket, storage raiden.Bucket)
- func BuildRoleFromState(rs RoleState, role raiden.Role) (r objects.Role)
- func BuildStorageFromState(ss StorageState, storage raiden.Bucket) (s objects.Bucket)
- func CreateTmpState(stateFile string) string
- func GetStateFilePath() (path string, err error)
- func RestoreFromTmp(tmpFile string)
- func Save(state *State) error
- type ExtractRoleResult
- type ExtractRpcResult
- type ExtractStorageResult
- type ExtractTableItem
- type ExtractTableItems
- type ExtractTableResult
- type ExtractedPolicies
- type JoinRelation
- type Relation
- type RoleState
- type RpcState
- type State
- type StorageState
- type TableState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StateFileDir = "build" StateFileName = "state" )
Functions ¶
func BuildStorageFromState ¶
func BuildStorageFromState(ss StorageState, storage raiden.Bucket) (s objects.Bucket)
func CreateTmpState ¶
func GetStateFilePath ¶
func RestoreFromTmp ¶
func RestoreFromTmp(tmpFile string)
Types ¶
type ExtractRoleResult ¶
func ExtractRole ¶
type ExtractRpcResult ¶
type ExtractRpcResult struct {
Existing []objects.Function
New []objects.Function
Delete []objects.Function
}
func ExtractRpc ¶
func ExtractRpc(rpcState []RpcState, appRpc []raiden.Rpc) (result ExtractRpcResult, err error)
type ExtractStorageResult ¶
type ExtractStorageResult struct {
Existing []objects.Bucket
New []objects.Bucket
Delete []objects.Bucket
}
func ExtractStorage ¶
func ExtractStorage(storageStates []StorageState, appStorages []raiden.Bucket) (result ExtractStorageResult, err error)
type ExtractTableItem ¶
type ExtractTableItem struct {
Table objects.Table
Policies objects.Policies
ExtractedPolicies ExtractedPolicies
}
type ExtractTableItems ¶
type ExtractTableItems []ExtractTableItem
func (ExtractTableItems) ToFlatTable ¶
func (f ExtractTableItems) ToFlatTable() (tables []objects.Table)
type ExtractTableResult ¶
type ExtractTableResult struct {
Existing ExtractTableItems
New ExtractTableItems
Delete ExtractTableItems
}
func ExtractTable ¶
func ExtractTable(tableStates []TableState, appTable []any) (result ExtractTableResult, err error)
type ExtractedPolicies ¶
type JoinRelation ¶
type Relation ¶
type Relation struct {
Table string
Type string
RelationType raiden.RelationType
PrimaryKey string
ForeignKey string
Tag string
*JoinRelation
}
type State ¶
type State struct {
Tables []TableState
Roles []RoleState
Rpc []RpcState
Storage []StorageState
}
Click to show internal directories.
Click to hide internal directories.