binaryauthorization

package
v1.84.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

View Source
const AttestorMaxPage = -1
View Source
const PolicyMaxPage = -1

Variables

View Source
var YAML_attestor []byte
View Source
var YAML_policy []byte

Functions

func DCLAttestorSchema added in v1.10.3

func DCLAttestorSchema() *dcl.Schema

func DCLPolicySchema added in v1.10.3

func DCLPolicySchema() *dcl.Schema

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.

func (*Attestor) ID

func (r *Attestor) ID() (string, error)

func (*Attestor) String

func (r *Attestor) String() string

type AttestorList

type AttestorList struct {
	Items []*Attestor
	// contains filtered or unexported fields
}

func (*AttestorList) HasNext

func (l *AttestorList) HasNext() bool

func (*AttestorList) Next

func (l *AttestorList) Next(ctx context.Context, c *Client) error

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 (*AttestorUserOwnedDrydockNote) HashCode

func (r *AttestorUserOwnedDrydockNote) HashCode() string

func (*AttestorUserOwnedDrydockNote) 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 (*AttestorUserOwnedDrydockNotePublicKeys) HashCode

func (*AttestorUserOwnedDrydockNotePublicKeys) 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 (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) HashCode

func (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) String

func (*AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey) UnmarshalJSON

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

type Client

type Client struct {
	Config *dcl.Config
}

The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.

func NewClient

func NewClient(c *dcl.Config) *Client

NewClient creates a client that retries all operations a few times each.

func (*Client) ApplyAttestor

func (c *Client) ApplyAttestor(ctx context.Context, rawDesired *Attestor, opts ...dcl.ApplyOption) (*Attestor, error)

func (*Client) ApplyPolicy

func (c *Client) ApplyPolicy(ctx context.Context, rawDesired *Policy, opts ...dcl.ApplyOption) (*Policy, error)

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 (c *Client) DeleteAttestor(ctx context.Context, r *Attestor) error

func (*Client) GetAttestor

func (c *Client) GetAttestor(ctx context.Context, r *Attestor) (*Attestor, error)

func (*Client) GetPolicy

func (c *Client) GetPolicy(ctx context.Context, r *Policy) (*Policy, error)

func (*Client) ListAttestor

func (c *Client) ListAttestor(ctx context.Context, project string) (*AttestorList, error)

func (*Client) ListAttestorWithMaxResults

func (c *Client) ListAttestorWithMaxResults(ctx context.Context, project string, pageSize int32) (*AttestorList, error)

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) GetPolicy

func (r *Policy) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)

func (*Policy) IAMPolicyVersion

func (r *Policy) IAMPolicyVersion() int

func (*Policy) ID

func (r *Policy) ID() (string, error)

func (*Policy) SetPolicyURL

func (r *Policy) SetPolicyURL(userBasePath string) string

func (*Policy) SetPolicyVerb

func (r *Policy) SetPolicyVerb() string

func (*Policy) String

func (r *Policy) String() string

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 (*PolicyAdmissionWhitelistPatterns) HashCode

func (*PolicyAdmissionWhitelistPatterns) 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

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

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

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

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

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 (*PolicyIstioServiceIdentityAdmissionRules) HashCode

func (*PolicyIstioServiceIdentityAdmissionRules) 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

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

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 (*PolicyKubernetesNamespaceAdmissionRules) HashCode

func (*PolicyKubernetesNamespaceAdmissionRules) 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

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

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 (*PolicyKubernetesServiceAccountAdmissionRules) HashCode

func (*PolicyKubernetesServiceAccountAdmissionRules) 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

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

type PolicyList

type PolicyList struct {
	Items []*Policy
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL