Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>`
Name string `json:"name"`
Ancestry string `json:"ancestry_path"`
// The type name in `google.<api>.<resourcename>` format.
Type string `json:"asset_type"`
Resource *AssetResource `json:"resource,omitempty"`
IAMPolicy *IAMPolicy `json:"iam_policy,omitempty"`
}
Asset is the CAI representation of a resource.
type AssetResource ¶
type AssetResource struct {
// Api version
Version string `json:"version"`
// URI including scheme for the discovery doc - assembled from
// product name and version.
DiscoveryDocumentURI string `json:"discovery_document_uri"`
// Resource name.
DiscoveryName string `json:"discovery_name"`
// Actual resource state as per deployment. Note that this does
// not necessarily correspond perfectly with the CAI representation
// as there are occasional deviations between CAI and API responses.
// This returns the API response values instead.
Data map[string]interface{} `json:"data,omitempty"`
}
AssetResource is the Asset's Resource field.
type IAMBinding ¶
type IAMPolicy ¶
type IAMPolicy struct {
Bindings []IAMBinding `json:"bindings"`
}
Click to show internal directories.
Click to hide internal directories.