Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntryPoint ¶
EntryPoint is the function to be executed for each cloud function occurence
func Initialize ¶
Initialize is to be executed in the init() function of the cloud function to optimize the cold start
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` AssetType string `json:"assetType"` Ancestors []string `json:"ancestors"` IamPolicy json.RawMessage `json:"iamPolicy"` Resource json.RawMessage `json:"resource"` }
Asset uses the new CAI feed format
type AssetLegacy ¶
type AssetLegacy struct { Name string `json:"name"` AssetType string `json:"asset_type"` Ancestors []string `json:"ancestors"` IamPolicy json.RawMessage `json:"iam_policy"` Resource json.RawMessage `json:"resource"` }
AssetLegacy uses the CAI export legacy format, not the new CAI feed format aka asset_type instead of assetType, iam_policy instead of iamPolicy
Click to show internal directories.
Click to hide internal directories.