Documentation
¶
Index ¶
- Variables
- func ValidateAppliedPolicy(result *AppliedPolicy) (err error)
- func ValidateAppliedPolicyCollectionView(result AppliedPolicyCollectionView) (err error)
- func ValidateAppliedPolicyCollectionViewLink(result AppliedPolicyCollectionView) (err error)
- func ValidateAppliedPolicyCollectionViewSource(result AppliedPolicyCollectionView) (err error)
- func ValidateAppliedPolicyList(result *AppliedPolicyList) (err error)
- func ValidateAppliedPolicyListView(result *AppliedPolicyListView) (err error)
- func ValidateAppliedPolicyListViewLink(result *AppliedPolicyListView) (err error)
- func ValidateAppliedPolicyLog(result *AppliedPolicyLog) (err error)
- func ValidateAppliedPolicyLogView(result *AppliedPolicyLogView) (err error)
- func ValidateAppliedPolicyStatus(result *AppliedPolicyStatus) (err error)
- func ValidateAppliedPolicyStatusView(result *AppliedPolicyStatusView) (err error)
- func ValidateAppliedPolicyView(result *AppliedPolicyView) (err error)
- func ValidateAppliedPolicyViewLink(result *AppliedPolicyView) (err error)
- func ValidateAppliedPolicyViewSource(result *AppliedPolicyView) (err error)
- func ValidateConfigurationOptionView(result *ConfigurationOptionView) (err error)
- func ValidateCredentialsTagView(result *CredentialsTagView) (err error)
- func ValidateCredentialsView(result *CredentialsView) (err error)
- func ValidateParameterView(result *ParameterView) (err error)
- func ValidatePermissionView(result *PermissionView) (err error)
- func ValidatePolicyTemplateView(result *PolicyTemplateView) (err error)
- func ValidatePolicyTemplateViewExtended(result *PolicyTemplateView) (err error)
- func ValidatePolicyTemplateViewLink(result *PolicyTemplateView) (err error)
- func ValidatePolicyTemplateViewSource(result *PolicyTemplateView) (err error)
- func ValidateProjectView(result *ProjectView) (err error)
- func ValidatePublishedTemplateView(result *PublishedTemplateView) (err error)
- func ValidatePublishedTemplateViewExtended(result *PublishedTemplateView) (err error)
- func ValidatePublishedTemplateViewLink(result *PublishedTemplateView) (err error)
- func ValidatePublishedTemplateViewSource(result *PublishedTemplateView) (err error)
- func ValidateRegexpView(result *RegexpView) (err error)
- func ValidateUserView(result *UserView) (err error)
- type AppliedPolicy
- type AppliedPolicyCollectionView
- type AppliedPolicyList
- type AppliedPolicyListView
- type AppliedPolicyLog
- type AppliedPolicyLogView
- type AppliedPolicyStatus
- type AppliedPolicyStatusView
- type AppliedPolicyView
- type ConfigurationOptionView
- type CredentialsTagView
- type CredentialsView
- type ParameterView
- type PermissionView
- type PolicyTemplateView
- type ProjectView
- type PublishedTemplateView
- type RegexpView
- type UserView
Constants ¶
This section is empty.
Variables ¶
var ( // AppliedPolicyMap is a map of attribute names in result type AppliedPolicy // indexed by view name. AppliedPolicyMap = map[string][]string{ "default": []string{ "id", "policy_aggregate_id", "incident_aggregate_id", "name", "project", "href", "policy_template", "published_template", "description", "doc_link", "info", "created_by", "created_at", "updated_at", "severity", "category", "frequency", "dry_run", "skip_approvals", "options", "credentials", "status", "error", "errored_at", "scope", "kind", }, "source": []string{ "id", "policy_aggregate_id", "incident_aggregate_id", "name", "project", "href", "policy_template", "published_template", "kind", }, "link": []string{ "id", "policy_aggregate_id", "incident_aggregate_id", "name", "href", "policy_template", "published_template", "created_by", "created_at", "frequency", "kind", }, } // AppliedPolicyStatusMap is a map of attribute names in result type // AppliedPolicyStatus indexed by view name. AppliedPolicyStatusMap = map[string][]string{ "default": []string{ "last_evaluation_start", "last_evaluation_finish", "next_evaluation_start", "evaluation_error", "evaluation_errored_at", }, } // AppliedPolicyLogMap is a map of attribute names in result type // AppliedPolicyLog indexed by view name. AppliedPolicyLogMap = map[string][]string{ "default": []string{ "response_body", "last_modified", "etag", }, } // AppliedPolicyListMap is a map of attribute names in result type // AppliedPolicyList indexed by view name. AppliedPolicyListMap = map[string][]string{ "default": []string{ "count", "items", "etag", "not_modified", "kind", }, "link": []string{ "count", "items", "etag", "not_modified", "kind", }, } // PolicyTemplateMap is a map of attribute names in result type PolicyTemplate // indexed by view name. PolicyTemplateMap = map[string][]string{ "default": []string{ "id", "name", "project_id", "rs_pt_ver", "short_description", "doc_link", "info", "default_frequency", "href", "fingerprint", "category", "created_by", "created_at", "updated_by", "updated_at", "required_roles", "severity", "tenancy", "kind", }, "extended": []string{ "id", "name", "project_id", "rs_pt_ver", "short_description", "long_description", "doc_link", "info", "default_frequency", "href", "fingerprint", "category", "created_by", "created_at", "updated_by", "updated_at", "permissions", "required_roles", "parameters", "severity", "tenancy", "credentials", "kind", }, "source": []string{ "id", "name", "href", "filename", "source", "fingerprint", "kind", }, "link": []string{ "id", "name", "href", "fingerprint", "updated_at", "updated_by", "kind", }, } // PublishedTemplateMap is a map of attribute names in result type // PublishedTemplate indexed by view name. PublishedTemplateMap = map[string][]string{ "default": []string{ "id", "name", "org_id", "project_id", "policy_template_id", "policy_template_url", "policy_template_fingerprint", "rs_pt_ver", "short_description", "doc_link", "info", "default_frequency", "href", "fingerprint", "category", "created_by", "created_at", "updated_by", "updated_at", "hidden_by", "hidden_at", "required_roles", "severity", "built_in", "hidden", "tenancy", "kind", }, "extended": []string{ "id", "name", "org_id", "project_id", "policy_template_id", "policy_template_url", "policy_template_fingerprint", "rs_pt_ver", "short_description", "long_description", "doc_link", "info", "default_frequency", "href", "fingerprint", "category", "created_by", "created_at", "updated_by", "updated_at", "hidden_by", "hidden_at", "permissions", "required_roles", "parameters", "severity", "built_in", "hidden", "tenancy", "credentials", "kind", }, "source": []string{ "id", "name", "href", "filename", "source", "fingerprint", "kind", }, "link": []string{ "id", "name", "href", "fingerprint", "updated_at", "updated_by", "built_in", "kind", }, } // AppliedPolicyCollectionMap is a map of attribute names in result type // AppliedPolicyCollection indexed by view name. AppliedPolicyCollectionMap = map[string][]string{ "default": []string{ "id", "policy_aggregate_id", "incident_aggregate_id", "name", "project", "href", "policy_template", "published_template", "description", "doc_link", "info", "created_by", "created_at", "updated_at", "severity", "category", "frequency", "dry_run", "skip_approvals", "options", "credentials", "status", "error", "errored_at", "scope", "kind", }, "source": []string{ "id", "policy_aggregate_id", "incident_aggregate_id", "name", "project", "href", "policy_template", "published_template", "kind", }, "link": []string{ "id", "policy_aggregate_id", "incident_aggregate_id", "name", "href", "policy_template", "published_template", "created_by", "created_at", "frequency", "kind", }, } )
Functions ¶
func ValidateAppliedPolicy ¶ added in v1.0.6
func ValidateAppliedPolicy(result *AppliedPolicy) (err error)
ValidateAppliedPolicy runs the validations defined on the viewed result type AppliedPolicy.
func ValidateAppliedPolicyCollectionView ¶ added in v1.0.6
func ValidateAppliedPolicyCollectionView(result AppliedPolicyCollectionView) (err error)
ValidateAppliedPolicyCollectionView runs the validations defined on AppliedPolicyCollectionView using the "default" view.
func ValidateAppliedPolicyCollectionViewLink ¶ added in v1.0.6
func ValidateAppliedPolicyCollectionViewLink(result AppliedPolicyCollectionView) (err error)
ValidateAppliedPolicyCollectionViewLink runs the validations defined on AppliedPolicyCollectionView using the "link" view.
func ValidateAppliedPolicyCollectionViewSource ¶ added in v1.0.6
func ValidateAppliedPolicyCollectionViewSource(result AppliedPolicyCollectionView) (err error)
ValidateAppliedPolicyCollectionViewSource runs the validations defined on AppliedPolicyCollectionView using the "source" view.
func ValidateAppliedPolicyList ¶ added in v1.0.6
func ValidateAppliedPolicyList(result *AppliedPolicyList) (err error)
ValidateAppliedPolicyList runs the validations defined on the viewed result type AppliedPolicyList.
func ValidateAppliedPolicyListView ¶ added in v1.0.6
func ValidateAppliedPolicyListView(result *AppliedPolicyListView) (err error)
ValidateAppliedPolicyListView runs the validations defined on AppliedPolicyListView using the "default" view.
func ValidateAppliedPolicyListViewLink ¶ added in v1.0.6
func ValidateAppliedPolicyListViewLink(result *AppliedPolicyListView) (err error)
ValidateAppliedPolicyListViewLink runs the validations defined on AppliedPolicyListView using the "link" view.
func ValidateAppliedPolicyLog ¶ added in v1.0.6
func ValidateAppliedPolicyLog(result *AppliedPolicyLog) (err error)
ValidateAppliedPolicyLog runs the validations defined on the viewed result type AppliedPolicyLog.
func ValidateAppliedPolicyLogView ¶ added in v1.0.6
func ValidateAppliedPolicyLogView(result *AppliedPolicyLogView) (err error)
ValidateAppliedPolicyLogView runs the validations defined on AppliedPolicyLogView using the "default" view.
func ValidateAppliedPolicyStatus ¶ added in v1.0.6
func ValidateAppliedPolicyStatus(result *AppliedPolicyStatus) (err error)
ValidateAppliedPolicyStatus runs the validations defined on the viewed result type AppliedPolicyStatus.
func ValidateAppliedPolicyStatusView ¶ added in v1.0.6
func ValidateAppliedPolicyStatusView(result *AppliedPolicyStatusView) (err error)
ValidateAppliedPolicyStatusView runs the validations defined on AppliedPolicyStatusView using the "default" view.
func ValidateAppliedPolicyView ¶ added in v1.0.6
func ValidateAppliedPolicyView(result *AppliedPolicyView) (err error)
ValidateAppliedPolicyView runs the validations defined on AppliedPolicyView using the "default" view.
func ValidateAppliedPolicyViewLink ¶ added in v1.0.6
func ValidateAppliedPolicyViewLink(result *AppliedPolicyView) (err error)
ValidateAppliedPolicyViewLink runs the validations defined on AppliedPolicyView using the "link" view.
func ValidateAppliedPolicyViewSource ¶ added in v1.0.6
func ValidateAppliedPolicyViewSource(result *AppliedPolicyView) (err error)
ValidateAppliedPolicyViewSource runs the validations defined on AppliedPolicyView using the "source" view.
func ValidateConfigurationOptionView ¶ added in v1.0.6
func ValidateConfigurationOptionView(result *ConfigurationOptionView) (err error)
ValidateConfigurationOptionView runs the validations defined on ConfigurationOptionView.
func ValidateCredentialsTagView ¶ added in v1.0.6
func ValidateCredentialsTagView(result *CredentialsTagView) (err error)
ValidateCredentialsTagView runs the validations defined on CredentialsTagView.
func ValidateCredentialsView ¶ added in v1.0.6
func ValidateCredentialsView(result *CredentialsView) (err error)
ValidateCredentialsView runs the validations defined on CredentialsView.
func ValidateParameterView ¶ added in v1.0.6
func ValidateParameterView(result *ParameterView) (err error)
ValidateParameterView runs the validations defined on ParameterView.
func ValidatePermissionView ¶ added in v1.0.6
func ValidatePermissionView(result *PermissionView) (err error)
ValidatePermissionView runs the validations defined on PermissionView.
func ValidatePolicyTemplateView ¶ added in v1.0.6
func ValidatePolicyTemplateView(result *PolicyTemplateView) (err error)
ValidatePolicyTemplateView runs the validations defined on PolicyTemplateView using the "default" view.
func ValidatePolicyTemplateViewExtended ¶ added in v1.0.6
func ValidatePolicyTemplateViewExtended(result *PolicyTemplateView) (err error)
ValidatePolicyTemplateViewExtended runs the validations defined on PolicyTemplateView using the "extended" view.
func ValidatePolicyTemplateViewLink ¶ added in v1.0.6
func ValidatePolicyTemplateViewLink(result *PolicyTemplateView) (err error)
ValidatePolicyTemplateViewLink runs the validations defined on PolicyTemplateView using the "link" view.
func ValidatePolicyTemplateViewSource ¶ added in v1.0.6
func ValidatePolicyTemplateViewSource(result *PolicyTemplateView) (err error)
ValidatePolicyTemplateViewSource runs the validations defined on PolicyTemplateView using the "source" view.
func ValidateProjectView ¶ added in v1.0.6
func ValidateProjectView(result *ProjectView) (err error)
ValidateProjectView runs the validations defined on ProjectView.
func ValidatePublishedTemplateView ¶ added in v1.0.6
func ValidatePublishedTemplateView(result *PublishedTemplateView) (err error)
ValidatePublishedTemplateView runs the validations defined on PublishedTemplateView using the "default" view.
func ValidatePublishedTemplateViewExtended ¶ added in v1.0.6
func ValidatePublishedTemplateViewExtended(result *PublishedTemplateView) (err error)
ValidatePublishedTemplateViewExtended runs the validations defined on PublishedTemplateView using the "extended" view.
func ValidatePublishedTemplateViewLink ¶ added in v1.0.6
func ValidatePublishedTemplateViewLink(result *PublishedTemplateView) (err error)
ValidatePublishedTemplateViewLink runs the validations defined on PublishedTemplateView using the "link" view.
func ValidatePublishedTemplateViewSource ¶ added in v1.0.6
func ValidatePublishedTemplateViewSource(result *PublishedTemplateView) (err error)
ValidatePublishedTemplateViewSource runs the validations defined on PublishedTemplateView using the "source" view.
func ValidateRegexpView ¶ added in v1.0.6
func ValidateRegexpView(result *RegexpView) (err error)
ValidateRegexpView runs the validations defined on RegexpView.
func ValidateUserView ¶ added in v1.0.6
ValidateUserView runs the validations defined on UserView.
Types ¶
type AppliedPolicy ¶
type AppliedPolicy struct { // Type to project Projected *AppliedPolicyView // View to render View string }
AppliedPolicy is the viewed result type that is projected based on a view.
type AppliedPolicyCollectionView ¶
type AppliedPolicyCollectionView []*AppliedPolicyView
AppliedPolicyCollectionView is a type that runs validations on a projected type.
type AppliedPolicyList ¶
type AppliedPolicyList struct { // Type to project Projected *AppliedPolicyListView // View to render View string }
AppliedPolicyList is the viewed result type that is projected based on a view.
type AppliedPolicyListView ¶
type AppliedPolicyListView struct { // count is the number of applied policies in the list. Count *uint // etag is an HTTP ETag for the applied policy list. Etag *string // items is the array of applied policies. Items AppliedPolicyCollectionView // not_modified is a flag used internally that indicates how to encode the HTTP // response (i.e. 200 or 304). NotModified *string // kind is "gov#applied_policy_list". Kind *string }
AppliedPolicyListView is a type that runs validations on a projected type.
type AppliedPolicyLog ¶
type AppliedPolicyLog struct { // Type to project Projected *AppliedPolicyLogView // View to render View string }
AppliedPolicyLog is the viewed result type that is projected based on a view.
type AppliedPolicyLogView ¶
type AppliedPolicyLogView struct { // response_body is the log from the last policy evaluation, directly in the // body of the response. *The content type is "text/markdown"*. ResponseBody *string // last_evaluation_finish is the timestamp of the finish of the last policy // evaluation. LastModified *string // etag is an HTTP ETag for the applied policy list. Etag *string }
AppliedPolicyLogView is a type that runs validations on a projected type.
type AppliedPolicyStatus ¶
type AppliedPolicyStatus struct { // Type to project Projected *AppliedPolicyStatusView // View to render View string }
AppliedPolicyStatus is the viewed result type that is projected based on a view.
type AppliedPolicyStatusView ¶
type AppliedPolicyStatusView struct { // last_evaluation_start is the timestamp of the start of the last policy // evaluation. LastEvaluationStart *string // last_evaluation_finish is the timestamp of the finish of the last policy // evaluation. It is omitted if the policy is currently evaluating. LastEvaluationFinish *string // next_evaluation_start is the timestamp of the next expected policy // evaluation start. It is omitted if the policy is currently evalutating. NextEvaluationStart *string // evaluation_error is the error message returned if the evaluation failed. On // success this attribute is empty. EvaluationError *string // evaluation_errored_at is the timestamp of the last evaluation error. EvaluationErroredAt *string }
AppliedPolicyStatusView is a type that runs validations on a projected type.
type AppliedPolicyView ¶
type AppliedPolicyView struct { // id identifies an applied policy by ID. ID *string // policy_aggregate_id is set if applied policy is part of an policy aggregate. PolicyAggregateID *string // incident_aggregate_id is set if applied incident is part of an policy // aggregate. IncidentAggregateID *string // name provides a name for this specific application of the policy. Name *string // Project represents a RightScale project and provides some information about // the project. Project *ProjectView // href is the href of the applied policy. Href *string // policy_template links to key attributes of the policy template from which // the applied policy originated. PolicyTemplate *PolicyTemplateView // published_template links to key attributes of the published template from // which the applied policy originated. PublishedTemplate *PublishedTemplateView // description provides a human readable description for this specific // application of the policy. Description *string // doc_link is a HTTP URI to a page containing detailed documentation for the // policy. DocLink *string // info is an arbitrary set of key/value pairs that provide additional // information such as the policy author, support contact information, etc. Info map[string]string // created_by is the RightScale user that applied the policy. CreatedBy *UserView // created_at is the applied policy creation timestamp in RFC3339 format. CreatedAt *string // updated_at is the applied policy update timestamp in RFC3339 format. UpdatedAt *string // severity defines the severity level of incidents raised from this applied // policy. Severity *string // category is the type categorization of the applied policy. Category *string // frequency specifies the frequency with which to run policy evaluations Frequency *string // dry_run is a flag used for testing a policy so that an incident can be // raised without performing an action. DryRun *bool // skip_approvals means that any approval actions will be skipped and all // actions automatically run. SkipApprovals *bool // options lists the configuration options used to parameterize the policy. Options []*ConfigurationOptionView // credentials map of credentials to use. The key in the map is the credential // name from the PolicyTemplate and the value is the credential identifier from // the Credentials management page. Credentials map[string]string // status is used to identify the current status of the applied policy. Status *string // error is the error message returned if the evaluation failed. On success // this attribute is empty. Error *string // errored_at is the applied policy error timestamp in RFC3339 format. On // success this attribute is empty. ErroredAt *string // scope is whether the policy is managed at an org-wide or project level. Scope *string // kind is "gov#applied_policy". Kind *string }
AppliedPolicyView is a type that runs validations on a projected type.
type ConfigurationOptionView ¶
type ConfigurationOptionView struct { // name of option Name *string // label of option Label *string // type of option Type *string // value of option Value interface{} // no_echo determines whether the value of the configuration option should be // hidden in UIs and API responses. NoEcho *bool }
ConfigurationOptionView is a type that runs validations on a projected type.
type CredentialsTagView ¶ added in v1.0.6
type CredentialsTagView struct { // Key is the tag key. Key *string `json:"key"` // Value is the tag value. Value *string `json:"value"` }
CredentialsTagView is a type that runs validations on a projected type.
type CredentialsView ¶ added in v1.0.6
type CredentialsView struct { // Name in policy template source code Name *string `json:"name"` // Schemes of credentials service resource supported. Schemes []string `json:"schemes"` // Label for the auth reference Label *string `json:"label"` // Description of what types of permissions need to be provided by auth. Description *string `json:"description"` // Tags is an optional filter to only show credentials matching a certain tag. Tags []*CredentialsTagView `json:"tags"` }
CredentialsView is a type that runs validations on a projected type.
type ParameterView ¶
type ParameterView struct { // Name of the parameter Name *string `json:"name"` // Type of the parameter Type *string `json:"type"` // Label to show in the UI Label *string `json:"label"` // The index of this parameter in the list Index *uint `json:"index"` // The category used to group parameters Category *string `json:"category"` // Description of the parameter Description *string `json:"description"` // The default value for the parameter Default interface{} `json:"default"` // no_echo determines whether the value of the parameter should be hidden in // UIs and API responses. NoEcho *bool `json:"no_echo"` // List of values allowed for this parameter AllowedValues []interface{} `json:"allowed_values"` // The minimum length of a string parameter MinLength *uint `json:"min_length"` // The maximum length of a string parameter MaxLength *uint `json:"max_length"` // The minimum value of a number parmameter MinValue *float64 `json:"min_value"` // The maximum value of a number parameter MaxValue *float64 `json:"max_value"` // The regular expression pattern used to validate a string parameter AllowedPattern *RegexpView `json:"allowed_pattern"` // The description used for constraints ConstraintDescription *string `json:"constraint_description"` }
ParameterView is a type that runs validations on a projected type.
type PermissionView ¶
type PermissionView struct { // Name of a permission Name *string `json:"name"` // Label is used in the UI Label *string `json:"label"` // List of resource names the permission is applied to Resources []string `json:"resources"` // List of action names the permission is applied to Actions []string `json:"actions"` }
PermissionView is a type that runs validations on a projected type.
type PolicyTemplateView ¶
type PolicyTemplateView struct { // id identifies a policy template by ID. ID *string // name is the unique name of the policy template in the project. Name *string // project_id is the ID of the project that the policy template applies to. ProjectID *uint // rs_pt_ver is the policy engine version. RsPtVer *uint // short_description is the short description of the policy template. ShortDescription *string // long_description is the long description of the policy template. The content // can be markdown. LongDescription *string // doc_link is an HTTP URI to a page containing detailed documentation for the // policy. DocLink *string // info is an arbitrary set of key/value pairs that provide additional // information such as the policy author, support contact information, etc. Info map[string]string // default_frequency defines the interval the template will be run unless set // differently during application. DefaultFrequency *string // href is the href of the policy template. Href *string // filename is the name of the file that was uploaded to create the policy // template. Filename *string // source is the policy template source code. Source *string // fingerprint is a SHA created during compilation. It is used to determine if // the template is outdated. Fingerprint *string // category is the type categorization of the policy template. Category *string // created_by is the RightScale user that created the policy template. CreatedBy *UserView // created_at is the policy template creation timestamp in RFC3339 format. CreatedAt *string // updated_by is the RightScale user that updated the policy template. UpdatedBy *UserView // updated_at is the last update timestamp in RFC3339 format. UpdatedAt *string // permissions is a list of permissions required to run the policy. Permissions map[string]*PermissionView // required_roles is a list of governance roles, derived from permissions, // required to run the policy. RequiredRoles []string // parameters is a list of parameters required to apply the policy. Parameters map[string]*ParameterView // severity defines the severity level of incidents raised from this policy // template. Severity *string // tenancy indicates whether this template can be run across multiple projects // or is restricted to a single project. Tenancy *string // credentials is a list of authorization for external APIs needed to run the // policy. Credentials map[string]*CredentialsView // kind is "gov#policy_template". Kind *string }
PolicyTemplateView is a type that runs validations on a projected type.
type ProjectView ¶
type ProjectView struct { // id is the Project ID ID *uint // name is the Project Name Name *string // org_id is the RightScale Organization ID OrgID *uint // org_name is the RightScale Organization Name OrgName *string }
ProjectView is a type that runs validations on a projected type.
type PublishedTemplateView ¶
type PublishedTemplateView struct { // id identifies a published template by ID. ID *string // name is the unique name of the published template in the organization. Name *string // org_id is the ID of the organization that the published template belongs to. OrgID *uint // project_id is the ID of the project that the published template is published // from. ProjectID *uint // policy_template_id is the ID of the policy template from which the published // template originated. PolicyTemplateID *string // policy_template_url is the full URL to the policy template from which the // published template originated. PolicyTemplateURL *string // policy_template_fingerprint is fingerprint of the policy template. It is // used to determine if the policy template that this was published from is // outdated. PolicyTemplateFingerprint *string // rs_pt_ver is the policy engine version. RsPtVer *uint // short_description is the short description of the published template. ShortDescription *string // long_description is the long description of the published template. The // content can be markdown. LongDescription *string // doc_link is a HTTP URI to a page containing detailed documentation for the // policy. DocLink *string // info is an arbitrary set of key/value pairs that provide additional // information such as the policy author, support contact information, etc. Info map[string]string // default_frequency defines the interval the template will be run unless set // differently during application. DefaultFrequency *string // href is the self-referential href of the published template. Href *string // filename is the name of the file that was uploaded to create the policy // template. Filename *string // source is published template source code. Source *string // fingerprint is a SHA created during compilation. It is used to determine if // the policy template that this was published from is outdated. Fingerprint *string // category is the type categorization of the published template. Category *string // created_by is the RightScale user that created the published template. CreatedBy *UserView // created_at is the published template creation timestamp in RFC3339 format. CreatedAt *string // updated_by is the RightScale user that updated the published template. UpdatedBy *UserView // updated_at is the published template update timestamp in RFC3339 format. UpdatedAt *string // permissions is a list of permissions required to run the policy. Permissions map[string]*PermissionView // required_roles is a list of governance roles, derived from permissions, // required to run the policy. RequiredRoles []string // parameters is a list of parameters required to apply the policy. Parameters map[string]*ParameterView // severity defines the severity level of incidents raised from this published // template. Severity *string // built_in is a flag to indicate whether the published template is a // "built-in" RS-supplied template. BuiltIn *bool // hidden is a flag to indicate whether the published template is hidden. Hidden *bool // hidden_by is the RightScale user that marked the published template as // hidden. HiddenBy *UserView // hidden_at is the hidden at timestamp in RFC3339 format. HiddenAt *string // tenancy indicates whether this template can be run across multiple projects // or is restricted to a single project. Tenancy *string // credentials is a list of authorization for external APIs needed to run the // policy. Credentials map[string]*CredentialsView // kind is "gov#published_template". Kind *string }
PublishedTemplateView is a type that runs validations on a projected type.
type RegexpView ¶
type RegexpView struct { // Pattern is the regular expression pattern. Pattern *string `json:"pattern"` // Options are the regular expression options. Options i (case insensitve) and // m (match over newlines) supported. Options *string `json:"options"` }
RegexpView is a type that runs validations on a projected type.