Documentation ¶
Overview ¶
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package binaryauthorization provides types and functiosn for handling binaryauthorization GCP resources.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package binaryauthorization defines operations in the declarative SDK.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func DCLAttestorSchema() *dcl.Schema
- func DCLPolicySchema() *dcl.Schema
- type Attestor
- type AttestorList
- type AttestorUserOwnedDrydockNote
- type AttestorUserOwnedDrydockNotePublicKeys
- type AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey
- func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) Empty() bool
- func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) HashCode() string
- func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) String() string
- func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) UnmarshalJSON(data []byte) error
- type AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum
- type Client
- func (c *Client) ApplyAttestor(ctx context.Context, rawDesired *Attestor, opts ...dcl.ApplyOption) (*Attestor, error)
- func (c *Client) ApplyPolicy(ctx context.Context, rawDesired *Policy, opts ...dcl.ApplyOption) (*Policy, error)
- func (c *Client) DeleteAllAttestor(ctx context.Context, project string, filter func(*Attestor) bool) error
- func (c *Client) DeleteAttestor(ctx context.Context, r *Attestor) error
- func (c *Client) GetAttestor(ctx context.Context, r *Attestor) (*Attestor, error)
- func (c *Client) GetPolicy(ctx context.Context, r *Policy) (*Policy, error)
- func (c *Client) ListAttestor(ctx context.Context, project string) (*AttestorList, error)
- func (c *Client) ListAttestorWithMaxResults(ctx context.Context, project string, pageSize int32) (*AttestorList, error)
- type Policy
- func (r *Policy) Describe() dcl.ServiceTypeVersion
- func (r *Policy) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)
- func (r *Policy) IAMPolicyVersion() int
- func (r *Policy) ID() (string, error)
- func (r *Policy) SetPolicyURL(userBasePath string) string
- func (r *Policy) SetPolicyVerb() string
- func (r *Policy) String() string
- type PolicyAdmissionWhitelistPatterns
- type PolicyClusterAdmissionRules
- type PolicyClusterAdmissionRulesEnforcementModeEnum
- type PolicyClusterAdmissionRulesEvaluationModeEnum
- type PolicyDefaultAdmissionRule
- type PolicyDefaultAdmissionRuleEnforcementModeEnum
- type PolicyDefaultAdmissionRuleEvaluationModeEnum
- type PolicyGlobalPolicyEvaluationModeEnum
- type PolicyIstioServiceIdentityAdmissionRules
- type PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum
- type PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum
- type PolicyKubernetesNamespaceAdmissionRules
- type PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum
- type PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum
- type PolicyKubernetesServiceAccountAdmissionRules
- type PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum
- type PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum
- type PolicyList
Constants ¶
const AttestorMaxPage = -1
const PolicyMaxPage = -1
Variables ¶
var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n x-dcl-server-default: true\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/binaryauthorization/attestor.yaml
var YAML_policy = []byte("info:\n title: BinaryAuthorization/Policy\n description: The BinaryAuthorization Policy resource\n x-dcl-struct-name: Policy\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Policy\n parameters:\n - name: policy\n required: true\n description: A full instance of a Policy\n apply:\n description: The function used to apply information about a Policy\n parameters:\n - name: policy\n required: true\n description: A full instance of a Policy\ncomponents:\n schemas:\n Policy:\n title: Policy\n x-dcl-id: projects/{{project}}/policy\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - defaultAdmissionRule\n properties:\n admissionWhitelistPatterns:\n type: array\n x-dcl-go-name: AdmissionWhitelistPatterns\n description: Optional. Admission policy allowlisting. A matching admission\n request will always be permitted. This feature is typically used to exclude\n Google or third-party infrastructure images from Binary Authorization\n policies.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PolicyAdmissionWhitelistPatterns\n properties:\n namePattern:\n type: string\n x-dcl-go-name: NamePattern\n description: An image name pattern to allowlist, in the form `registry/path/to/image`.\n This supports a trailing `*` as a wildcard, but this is allowed\n only in text after the `registry/` part.\n clusterAdmissionRules:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: PolicyClusterAdmissionRules\n required:\n - evaluationMode\n - enforcementMode\n properties:\n enforcementMode:\n type: string\n x-dcl-go-name: EnforcementMode\n x-dcl-go-type: PolicyClusterAdmissionRulesEnforcementModeEnum\n description: 'Required. The action when a pod creation is denied by\n the admission rule. Possible values: ENFORCEMENT_MODE_UNSPECIFIED,\n ENFORCED_BLOCK_AND_AUDIT_LOG, DRYRUN_AUDIT_LOG_ONLY'\n enum:\n - ENFORCEMENT_MODE_UNSPECIFIED\n - ENFORCED_BLOCK_AND_AUDIT_LOG\n - DRYRUN_AUDIT_LOG_ONLY\n evaluationMode:\n type: string\n x-dcl-go-name: EvaluationMode\n x-dcl-go-type: PolicyClusterAdmissionRulesEvaluationModeEnum\n description: 'Required. How this admission rule will be evaluated.\n Possible values: ALWAYS_ALLOW, ALWAYS_DENY, REQUIRE_ATTESTATION'\n enum:\n - ALWAYS_ALLOW\n - ALWAYS_DENY\n - REQUIRE_ATTESTATION\n requireAttestationsBy:\n type: array\n x-dcl-go-name: RequireAttestationsBy\n description: 'Optional. The resource names of the attestors that must\n attest to a container image, in the format `projects/*/attestors/*`.\n Each attestor must exist before a policy can reference it. To add\n an attestor to a policy the principal issuing the policy change\n request must be able to read the attestor resource. Note: this field\n must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION,\n otherwise it must be empty.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Binaryauthorization/Attestor\n field: name\n x-dcl-go-name: ClusterAdmissionRules\n description: 'Optional. Per-cluster admission rules. Cluster spec format:\n location.clusterId. There can be at most one admission rule per cluster\n spec. A location is either a compute zone (e.g. us-central1-a) or a region\n (e.g. us-central1). For clusterId syntax restrictions see https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.'\n x-dcl-conflicts:\n - kubernetesNamespaceAdmissionRules\n - kubernetesServiceAccountAdmissionRules\n - istioServiceIdentityAdmissionRules\n defaultAdmissionRule:\n type: object\n x-dcl-go-name: DefaultAdmissionRule\n x-dcl-go-type: PolicyDefaultAdmissionRule\n description: Required. Default admission rule for a cluster without a per-cluster,\n per-kubernetes-service-account, or per-istio-service-identity admission\n rule.\n required:\n - evaluationMode\n - enforcementMode\n properties:\n enforcementMode:\n type: string\n x-dcl-go-name: EnforcementMode\n x-dcl-go-type: PolicyDefaultAdmissionRuleEnforcementModeEnum\n description: 'Required. The action when a pod creation is denied by\n the admission rule. Possible values: ENFORCEMENT_MODE_UNSPECIFIED,\n ENFORCED_BLOCK_AND_AUDIT_LOG, DRYRUN_AUDIT_LOG_ONLY'\n enum:\n - ENFORCEMENT_MODE_UNSPECIFIED\n - ENFORCED_BLOCK_AND_AUDIT_LOG\n - DRYRUN_AUDIT_LOG_ONLY\n evaluationMode:\n type: string\n x-dcl-go-name: EvaluationMode\n x-dcl-go-type: PolicyDefaultAdmissionRuleEvaluationModeEnum\n description: 'Required. How this admission rule will be evaluated. Possible\n values: ALWAYS_ALLOW, ALWAYS_DENY, REQUIRE_ATTESTATION'\n enum:\n - ALWAYS_ALLOW\n - ALWAYS_DENY\n - REQUIRE_ATTESTATION\n requireAttestationsBy:\n type: array\n x-dcl-go-name: RequireAttestationsBy\n description: 'Optional. The resource names of the attestors that must\n attest to a container image, in the format `projects/*/attestors/*`.\n Each attestor must exist before a policy can reference it. To add\n an attestor to a policy the principal issuing the policy change request\n must be able to read the attestor resource. Note: this field must\n be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION,\n otherwise it must be empty.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Binaryauthorization/Attestor\n field: name\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment.\n globalPolicyEvaluationMode:\n type: string\n x-dcl-go-name: GlobalPolicyEvaluationMode\n x-dcl-go-type: PolicyGlobalPolicyEvaluationModeEnum\n description: 'Optional. Controls the evaluation of a Google-maintained global\n admission policy for common system-level images. Images not covered by\n the global policy will be subject to the project admission policy. This\n setting has no effect when specified inside a global admission policy.\n Possible values: GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED, ENABLE, DISABLE'\n enum:\n - GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED\n - ENABLE\n - DISABLE\n istioServiceIdentityAdmissionRules:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: PolicyIstioServiceIdentityAdmissionRules\n required:\n - evaluationMode\n - enforcementMode\n properties:\n enforcementMode:\n type: string\n x-dcl-go-name: EnforcementMode\n x-dcl-go-type: PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum\n description: 'Required. The action when a pod creation is denied by\n the admission rule. Possible values: ENFORCEMENT_MODE_UNSPECIFIED,\n ENFORCED_BLOCK_AND_AUDIT_LOG, DRYRUN_AUDIT_LOG_ONLY'\n enum:\n - ENFORCEMENT_MODE_UNSPECIFIED\n - ENFORCED_BLOCK_AND_AUDIT_LOG\n - DRYRUN_AUDIT_LOG_ONLY\n evaluationMode:\n type: string\n x-dcl-go-name: EvaluationMode\n x-dcl-go-type: PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum\n description: 'Required. How this admission rule will be evaluated.\n Possible values: ALWAYS_ALLOW, ALWAYS_DENY, REQUIRE_ATTESTATION'\n enum:\n - ALWAYS_ALLOW\n - ALWAYS_DENY\n - REQUIRE_ATTESTATION\n requireAttestationsBy:\n type: array\n x-dcl-go-name: RequireAttestationsBy\n description: 'Optional. The resource names of the attestors that must\n attest to a container image, in the format `projects/*/attestors/*`.\n Each attestor must exist before a policy can reference it. To add\n an attestor to a policy the principal issuing the policy change\n request must be able to read the attestor resource. Note: this field\n must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION,\n otherwise it must be empty.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Binaryauthorization/Attestor\n field: name\n x-dcl-go-name: IstioServiceIdentityAdmissionRules\n description: 'Optional. Per-istio-service-identity admission rules. Istio\n service identity spec format: spiffe:///ns//sa/ or /ns//sa/ e.g. spiffe://example.com/ns/test-ns/sa/default'\n x-dcl-conflicts:\n - kubernetesNamespaceAdmissionRules\n - kubernetesServiceAccountAdmissionRules\n - clusterAdmissionRules\n kubernetesNamespaceAdmissionRules:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: PolicyKubernetesNamespaceAdmissionRules\n required:\n - evaluationMode\n - enforcementMode\n properties:\n enforcementMode:\n type: string\n x-dcl-go-name: EnforcementMode\n x-dcl-go-type: PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum\n description: 'Required. The action when a pod creation is denied by\n the admission rule. Possible values: ENFORCEMENT_MODE_UNSPECIFIED,\n ENFORCED_BLOCK_AND_AUDIT_LOG, DRYRUN_AUDIT_LOG_ONLY'\n enum:\n - ENFORCEMENT_MODE_UNSPECIFIED\n - ENFORCED_BLOCK_AND_AUDIT_LOG\n - DRYRUN_AUDIT_LOG_ONLY\n evaluationMode:\n type: string\n x-dcl-go-name: EvaluationMode\n x-dcl-go-type: PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum\n description: 'Required. How this admission rule will be evaluated.\n Possible values: ALWAYS_ALLOW, ALWAYS_DENY, REQUIRE_ATTESTATION'\n enum:\n - ALWAYS_ALLOW\n - ALWAYS_DENY\n - REQUIRE_ATTESTATION\n requireAttestationsBy:\n type: array\n x-dcl-go-name: RequireAttestationsBy\n description: 'Optional. The resource names of the attestors that must\n attest to a container image, in the format `projects/*/attestors/*`.\n Each attestor must exist before a policy can reference it. To add\n an attestor to a policy the principal issuing the policy change\n request must be able to read the attestor resource. Note: this field\n must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION,\n otherwise it must be empty.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Binaryauthorization/Attestor\n field: name\n x-dcl-go-name: KubernetesNamespaceAdmissionRules\n description: 'Optional. Per-kubernetes-namespace admission rules. K8s namespace\n spec format: [a-z.-]+, e.g. ''some-namespace'''\n x-dcl-conflicts:\n - kubernetesServiceAccountAdmissionRules\n - istioServiceIdentityAdmissionRules\n - clusterAdmissionRules\n kubernetesServiceAccountAdmissionRules:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: PolicyKubernetesServiceAccountAdmissionRules\n required:\n - evaluationMode\n - enforcementMode\n properties:\n enforcementMode:\n type: string\n x-dcl-go-name: EnforcementMode\n x-dcl-go-type: PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum\n description: 'Required. The action when a pod creation is denied by\n the admission rule. Possible values: ENFORCEMENT_MODE_UNSPECIFIED,\n ENFORCED_BLOCK_AND_AUDIT_LOG, DRYRUN_AUDIT_LOG_ONLY'\n enum:\n - ENFORCEMENT_MODE_UNSPECIFIED\n - ENFORCED_BLOCK_AND_AUDIT_LOG\n - DRYRUN_AUDIT_LOG_ONLY\n evaluationMode:\n type: string\n x-dcl-go-name: EvaluationMode\n x-dcl-go-type: PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum\n description: 'Required. How this admission rule will be evaluated.\n Possible values: ALWAYS_ALLOW, ALWAYS_DENY, REQUIRE_ATTESTATION'\n enum:\n - ALWAYS_ALLOW\n - ALWAYS_DENY\n - REQUIRE_ATTESTATION\n requireAttestationsBy:\n type: array\n x-dcl-go-name: RequireAttestationsBy\n description: 'Optional. The resource names of the attestors that must\n attest to a container image, in the format `projects/*/attestors/*`.\n Each attestor must exist before a policy can reference it. To add\n an attestor to a policy the principal issuing the policy change\n request must be able to read the attestor resource. Note: this field\n must be non-empty when the evaluation_mode field specifies REQUIRE_ATTESTATION,\n otherwise it must be empty.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Binaryauthorization/Attestor\n field: name\n x-dcl-go-name: KubernetesServiceAccountAdmissionRules\n description: 'Optional. Per-kubernetes-service-account admission rules.\n Service account spec format: namespace:serviceaccount. e.g. ''test-ns:default'''\n x-dcl-conflicts:\n - kubernetesNamespaceAdmissionRules\n - istioServiceIdentityAdmissionRules\n - clusterAdmissionRules\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Output only. The resource name, in the format `projects/*/policy`.\n There is at most one policy per project.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the policy was last updated.\n x-kubernetes-immutable: true\n")
blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/binaryauthorization/policy.yaml
Functions ¶
func DCLAttestorSchema ¶ added in v1.10.3
func DCLPolicySchema ¶ added in v1.10.3
Types ¶
type Attestor ¶
type Attestor struct { Name *string `json:"name"` Description *string `json:"description"` UserOwnedDrydockNote *AttestorUserOwnedDrydockNote `json:"userOwnedDrydockNote"` UpdateTime *string `json:"updateTime"` Project *string `json:"project"` }
func (*Attestor) Describe ¶
func (r *Attestor) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
type AttestorList ¶
type AttestorList struct { Items []*Attestor // contains filtered or unexported fields }
func (*AttestorList) HasNext ¶
func (l *AttestorList) HasNext() bool
type AttestorUserOwnedDrydockNote ¶
type AttestorUserOwnedDrydockNote struct { NoteReference *string `json:"noteReference"` PublicKeys []AttestorUserOwnedDrydockNotePublicKeys `json:"publicKeys"` DelegationServiceAccountEmail *string `json:"delegationServiceAccountEmail"` // contains filtered or unexported fields }
var EmptyAttestorUserOwnedDrydockNote *AttestorUserOwnedDrydockNote = &AttestorUserOwnedDrydockNote{empty: true}
This object is used to assert a desired state where this AttestorUserOwnedDrydockNote is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*AttestorUserOwnedDrydockNote) Empty ¶
func (r *AttestorUserOwnedDrydockNote) Empty() bool
func (*AttestorUserOwnedDrydockNote) HashCode ¶
func (r *AttestorUserOwnedDrydockNote) HashCode() string
func (*AttestorUserOwnedDrydockNote) String ¶
func (r *AttestorUserOwnedDrydockNote) String() string
func (*AttestorUserOwnedDrydockNote) UnmarshalJSON ¶
func (r *AttestorUserOwnedDrydockNote) UnmarshalJSON(data []byte) error
type AttestorUserOwnedDrydockNotePublicKeys ¶
type AttestorUserOwnedDrydockNotePublicKeys struct { Comment *string `json:"comment"` Id *string `json:"id"` AsciiArmoredPgpPublicKey *string `json:"asciiArmoredPgpPublicKey"` PkixPublicKey *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey `json:"pkixPublicKey"` // contains filtered or unexported fields }
var EmptyAttestorUserOwnedDrydockNotePublicKeys *AttestorUserOwnedDrydockNotePublicKeys = &AttestorUserOwnedDrydockNotePublicKeys{empty: true}
This object is used to assert a desired state where this AttestorUserOwnedDrydockNotePublicKeys is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*AttestorUserOwnedDrydockNotePublicKeys) Empty ¶
func (r *AttestorUserOwnedDrydockNotePublicKeys) Empty() bool
func (*AttestorUserOwnedDrydockNotePublicKeys) HashCode ¶
func (r *AttestorUserOwnedDrydockNotePublicKeys) HashCode() string
func (*AttestorUserOwnedDrydockNotePublicKeys) String ¶
func (r *AttestorUserOwnedDrydockNotePublicKeys) String() string
func (*AttestorUserOwnedDrydockNotePublicKeys) UnmarshalJSON ¶
func (r *AttestorUserOwnedDrydockNotePublicKeys) UnmarshalJSON(data []byte) error
type AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey ¶
type AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey struct { PublicKeyPem *string `json:"publicKeyPem"` SignatureAlgorithm *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum `json:"signatureAlgorithm"` // contains filtered or unexported fields }
var EmptyAttestorUserOwnedDrydockNotePublicKeysPkixPublicKey *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey = &AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey{empty: true}
This object is used to assert a desired state where this AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) Empty ¶
func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) Empty() bool
func (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) HashCode ¶
func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) HashCode() string
func (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) String ¶
func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) String() string
func (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) UnmarshalJSON ¶
func (r *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) UnmarshalJSON(data []byte) error
type AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum ¶
type AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum string
The enum AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum.
func AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnumRef ¶
func AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnumRef(s string) *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum
AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnumRef returns a *AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum with the value of string s If the empty string is provided, nil is returned.
func (AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum) Validate ¶
func (v AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum) Validate() error
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) ApplyAttestor ¶
func (*Client) ApplyPolicy ¶
func (*Client) DeleteAllAttestor ¶
func (c *Client) DeleteAllAttestor(ctx context.Context, project string, filter func(*Attestor) bool) error
DeleteAllAttestor deletes all resources that the filter functions returns true on.
func (*Client) DeleteAttestor ¶
func (*Client) GetAttestor ¶
func (*Client) ListAttestor ¶
func (*Client) ListAttestorWithMaxResults ¶
type Policy ¶
type Policy struct { AdmissionWhitelistPatterns []PolicyAdmissionWhitelistPatterns `json:"admissionWhitelistPatterns"` ClusterAdmissionRules map[string]PolicyClusterAdmissionRules `json:"clusterAdmissionRules"` KubernetesNamespaceAdmissionRules map[string]PolicyKubernetesNamespaceAdmissionRules `json:"kubernetesNamespaceAdmissionRules"` KubernetesServiceAccountAdmissionRules map[string]PolicyKubernetesServiceAccountAdmissionRules `json:"kubernetesServiceAccountAdmissionRules"` IstioServiceIdentityAdmissionRules map[string]PolicyIstioServiceIdentityAdmissionRules `json:"istioServiceIdentityAdmissionRules"` DefaultAdmissionRule *PolicyDefaultAdmissionRule `json:"defaultAdmissionRule"` Description *string `json:"description"` GlobalPolicyEvaluationMode *PolicyGlobalPolicyEvaluationModeEnum `json:"globalPolicyEvaluationMode"` SelfLink *string `json:"selfLink"` Project *string `json:"project"` UpdateTime *string `json:"updateTime"` }
func (*Policy) Describe ¶
func (r *Policy) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*Policy) IAMPolicyVersion ¶
func (*Policy) SetPolicyURL ¶
func (*Policy) SetPolicyVerb ¶
type PolicyAdmissionWhitelistPatterns ¶
type PolicyAdmissionWhitelistPatterns struct { NamePattern *string `json:"namePattern"` // contains filtered or unexported fields }
var EmptyPolicyAdmissionWhitelistPatterns *PolicyAdmissionWhitelistPatterns = &PolicyAdmissionWhitelistPatterns{empty: true}
This object is used to assert a desired state where this PolicyAdmissionWhitelistPatterns is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*PolicyAdmissionWhitelistPatterns) Empty ¶
func (r *PolicyAdmissionWhitelistPatterns) Empty() bool
func (*PolicyAdmissionWhitelistPatterns) HashCode ¶
func (r *PolicyAdmissionWhitelistPatterns) HashCode() string
func (*PolicyAdmissionWhitelistPatterns) String ¶
func (r *PolicyAdmissionWhitelistPatterns) String() string
func (*PolicyAdmissionWhitelistPatterns) UnmarshalJSON ¶
func (r *PolicyAdmissionWhitelistPatterns) UnmarshalJSON(data []byte) error
type PolicyClusterAdmissionRules ¶
type PolicyClusterAdmissionRules struct { EvaluationMode *PolicyClusterAdmissionRulesEvaluationModeEnum `json:"evaluationMode"` RequireAttestationsBy []string `json:"requireAttestationsBy"` EnforcementMode *PolicyClusterAdmissionRulesEnforcementModeEnum `json:"enforcementMode"` // contains filtered or unexported fields }
var EmptyPolicyClusterAdmissionRules *PolicyClusterAdmissionRules = &PolicyClusterAdmissionRules{empty: true}
This object is used to assert a desired state where this PolicyClusterAdmissionRules is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*PolicyClusterAdmissionRules) Empty ¶
func (r *PolicyClusterAdmissionRules) Empty() bool
func (*PolicyClusterAdmissionRules) HashCode ¶
func (r *PolicyClusterAdmissionRules) HashCode() string
func (*PolicyClusterAdmissionRules) String ¶
func (r *PolicyClusterAdmissionRules) String() string
func (*PolicyClusterAdmissionRules) UnmarshalJSON ¶
func (r *PolicyClusterAdmissionRules) UnmarshalJSON(data []byte) error
type PolicyClusterAdmissionRulesEnforcementModeEnum ¶
type PolicyClusterAdmissionRulesEnforcementModeEnum string
The enum PolicyClusterAdmissionRulesEnforcementModeEnum.
func PolicyClusterAdmissionRulesEnforcementModeEnumRef ¶
func PolicyClusterAdmissionRulesEnforcementModeEnumRef(s string) *PolicyClusterAdmissionRulesEnforcementModeEnum
PolicyClusterAdmissionRulesEnforcementModeEnumRef returns a *PolicyClusterAdmissionRulesEnforcementModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyClusterAdmissionRulesEnforcementModeEnum) Validate ¶
func (v PolicyClusterAdmissionRulesEnforcementModeEnum) Validate() error
type PolicyClusterAdmissionRulesEvaluationModeEnum ¶
type PolicyClusterAdmissionRulesEvaluationModeEnum string
The enum PolicyClusterAdmissionRulesEvaluationModeEnum.
func PolicyClusterAdmissionRulesEvaluationModeEnumRef ¶
func PolicyClusterAdmissionRulesEvaluationModeEnumRef(s string) *PolicyClusterAdmissionRulesEvaluationModeEnum
PolicyClusterAdmissionRulesEvaluationModeEnumRef returns a *PolicyClusterAdmissionRulesEvaluationModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyClusterAdmissionRulesEvaluationModeEnum) Validate ¶
func (v PolicyClusterAdmissionRulesEvaluationModeEnum) Validate() error
type PolicyDefaultAdmissionRule ¶
type PolicyDefaultAdmissionRule struct { EvaluationMode *PolicyDefaultAdmissionRuleEvaluationModeEnum `json:"evaluationMode"` RequireAttestationsBy []string `json:"requireAttestationsBy"` EnforcementMode *PolicyDefaultAdmissionRuleEnforcementModeEnum `json:"enforcementMode"` // contains filtered or unexported fields }
var EmptyPolicyDefaultAdmissionRule *PolicyDefaultAdmissionRule = &PolicyDefaultAdmissionRule{empty: true}
This object is used to assert a desired state where this PolicyDefaultAdmissionRule is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*PolicyDefaultAdmissionRule) Empty ¶
func (r *PolicyDefaultAdmissionRule) Empty() bool
func (*PolicyDefaultAdmissionRule) HashCode ¶
func (r *PolicyDefaultAdmissionRule) HashCode() string
func (*PolicyDefaultAdmissionRule) String ¶
func (r *PolicyDefaultAdmissionRule) String() string
func (*PolicyDefaultAdmissionRule) UnmarshalJSON ¶
func (r *PolicyDefaultAdmissionRule) UnmarshalJSON(data []byte) error
type PolicyDefaultAdmissionRuleEnforcementModeEnum ¶
type PolicyDefaultAdmissionRuleEnforcementModeEnum string
The enum PolicyDefaultAdmissionRuleEnforcementModeEnum.
func PolicyDefaultAdmissionRuleEnforcementModeEnumRef ¶
func PolicyDefaultAdmissionRuleEnforcementModeEnumRef(s string) *PolicyDefaultAdmissionRuleEnforcementModeEnum
PolicyDefaultAdmissionRuleEnforcementModeEnumRef returns a *PolicyDefaultAdmissionRuleEnforcementModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyDefaultAdmissionRuleEnforcementModeEnum) Validate ¶
func (v PolicyDefaultAdmissionRuleEnforcementModeEnum) Validate() error
type PolicyDefaultAdmissionRuleEvaluationModeEnum ¶
type PolicyDefaultAdmissionRuleEvaluationModeEnum string
The enum PolicyDefaultAdmissionRuleEvaluationModeEnum.
func PolicyDefaultAdmissionRuleEvaluationModeEnumRef ¶
func PolicyDefaultAdmissionRuleEvaluationModeEnumRef(s string) *PolicyDefaultAdmissionRuleEvaluationModeEnum
PolicyDefaultAdmissionRuleEvaluationModeEnumRef returns a *PolicyDefaultAdmissionRuleEvaluationModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyDefaultAdmissionRuleEvaluationModeEnum) Validate ¶
func (v PolicyDefaultAdmissionRuleEvaluationModeEnum) Validate() error
type PolicyGlobalPolicyEvaluationModeEnum ¶
type PolicyGlobalPolicyEvaluationModeEnum string
The enum PolicyGlobalPolicyEvaluationModeEnum.
func PolicyGlobalPolicyEvaluationModeEnumRef ¶
func PolicyGlobalPolicyEvaluationModeEnumRef(s string) *PolicyGlobalPolicyEvaluationModeEnum
PolicyGlobalPolicyEvaluationModeEnumRef returns a *PolicyGlobalPolicyEvaluationModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyGlobalPolicyEvaluationModeEnum) Validate ¶
func (v PolicyGlobalPolicyEvaluationModeEnum) Validate() error
type PolicyIstioServiceIdentityAdmissionRules ¶
type PolicyIstioServiceIdentityAdmissionRules struct { EvaluationMode *PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum `json:"evaluationMode"` RequireAttestationsBy []string `json:"requireAttestationsBy"` EnforcementMode *PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum `json:"enforcementMode"` // contains filtered or unexported fields }
var EmptyPolicyIstioServiceIdentityAdmissionRules *PolicyIstioServiceIdentityAdmissionRules = &PolicyIstioServiceIdentityAdmissionRules{empty: true}
This object is used to assert a desired state where this PolicyIstioServiceIdentityAdmissionRules is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*PolicyIstioServiceIdentityAdmissionRules) Empty ¶
func (r *PolicyIstioServiceIdentityAdmissionRules) Empty() bool
func (*PolicyIstioServiceIdentityAdmissionRules) HashCode ¶
func (r *PolicyIstioServiceIdentityAdmissionRules) HashCode() string
func (*PolicyIstioServiceIdentityAdmissionRules) String ¶
func (r *PolicyIstioServiceIdentityAdmissionRules) String() string
func (*PolicyIstioServiceIdentityAdmissionRules) UnmarshalJSON ¶
func (r *PolicyIstioServiceIdentityAdmissionRules) UnmarshalJSON(data []byte) error
type PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum ¶
type PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum string
The enum PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum.
func PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnumRef ¶
func PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnumRef(s string) *PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum
PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnumRef returns a *PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum) Validate ¶
func (v PolicyIstioServiceIdentityAdmissionRulesEnforcementModeEnum) Validate() error
type PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum ¶
type PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum string
The enum PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum.
func PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnumRef ¶
func PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnumRef(s string) *PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum
PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnumRef returns a *PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum) Validate ¶
func (v PolicyIstioServiceIdentityAdmissionRulesEvaluationModeEnum) Validate() error
type PolicyKubernetesNamespaceAdmissionRules ¶
type PolicyKubernetesNamespaceAdmissionRules struct { EvaluationMode *PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum `json:"evaluationMode"` RequireAttestationsBy []string `json:"requireAttestationsBy"` EnforcementMode *PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum `json:"enforcementMode"` // contains filtered or unexported fields }
var EmptyPolicyKubernetesNamespaceAdmissionRules *PolicyKubernetesNamespaceAdmissionRules = &PolicyKubernetesNamespaceAdmissionRules{empty: true}
This object is used to assert a desired state where this PolicyKubernetesNamespaceAdmissionRules is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*PolicyKubernetesNamespaceAdmissionRules) Empty ¶
func (r *PolicyKubernetesNamespaceAdmissionRules) Empty() bool
func (*PolicyKubernetesNamespaceAdmissionRules) HashCode ¶
func (r *PolicyKubernetesNamespaceAdmissionRules) HashCode() string
func (*PolicyKubernetesNamespaceAdmissionRules) String ¶
func (r *PolicyKubernetesNamespaceAdmissionRules) String() string
func (*PolicyKubernetesNamespaceAdmissionRules) UnmarshalJSON ¶
func (r *PolicyKubernetesNamespaceAdmissionRules) UnmarshalJSON(data []byte) error
type PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum ¶
type PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum string
The enum PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum.
func PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnumRef ¶
func PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnumRef(s string) *PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum
PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnumRef returns a *PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum) Validate ¶
func (v PolicyKubernetesNamespaceAdmissionRulesEnforcementModeEnum) Validate() error
type PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum ¶
type PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum string
The enum PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum.
func PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnumRef ¶
func PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnumRef(s string) *PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum
PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnumRef returns a *PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum) Validate ¶
func (v PolicyKubernetesNamespaceAdmissionRulesEvaluationModeEnum) Validate() error
type PolicyKubernetesServiceAccountAdmissionRules ¶
type PolicyKubernetesServiceAccountAdmissionRules struct { EvaluationMode *PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum `json:"evaluationMode"` RequireAttestationsBy []string `json:"requireAttestationsBy"` EnforcementMode *PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum `json:"enforcementMode"` // contains filtered or unexported fields }
var EmptyPolicyKubernetesServiceAccountAdmissionRules *PolicyKubernetesServiceAccountAdmissionRules = &PolicyKubernetesServiceAccountAdmissionRules{empty: true}
This object is used to assert a desired state where this PolicyKubernetesServiceAccountAdmissionRules is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*PolicyKubernetesServiceAccountAdmissionRules) Empty ¶
func (r *PolicyKubernetesServiceAccountAdmissionRules) Empty() bool
func (*PolicyKubernetesServiceAccountAdmissionRules) HashCode ¶
func (r *PolicyKubernetesServiceAccountAdmissionRules) HashCode() string
func (*PolicyKubernetesServiceAccountAdmissionRules) String ¶
func (r *PolicyKubernetesServiceAccountAdmissionRules) String() string
func (*PolicyKubernetesServiceAccountAdmissionRules) UnmarshalJSON ¶
func (r *PolicyKubernetesServiceAccountAdmissionRules) UnmarshalJSON(data []byte) error
type PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum ¶
type PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum string
The enum PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum.
func PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnumRef ¶
func PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnumRef(s string) *PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum
PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnumRef returns a *PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum) Validate ¶
func (v PolicyKubernetesServiceAccountAdmissionRulesEnforcementModeEnum) Validate() error
type PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum ¶
type PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum string
The enum PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum.
func PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnumRef ¶
func PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnumRef(s string) *PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum
PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnumRef returns a *PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum with the value of string s If the empty string is provided, nil is returned.
func (PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum) Validate ¶
func (v PolicyKubernetesServiceAccountAdmissionRulesEvaluationModeEnum) Validate() error
type PolicyList ¶
type PolicyList struct { Items []*Policy // contains filtered or unexported fields }