Documentation
¶
Overview ¶
Copyright 2026 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 2026 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 2026 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 2026 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 2026 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 2026 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 2026 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 2026 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 2026 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 2026 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
var YAML_policy []byte
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
}