Documentation ¶
Overview ¶
Copyright 2022 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 2022 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 ¶
- func ApplyAttestor(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func AttestorHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func AttestorID(u *unstructured.Resource) (string, error)
- func AttestorToUnstructured(r *dclService.Attestor) *unstructured.Resource
- func DeleteAttestor(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeletePolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeletePolicyMemberPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) error
- func GetAttestor(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyMemberPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func GetPolicyPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListAttestor(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func PolicyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func PolicyID(u *unstructured.Resource) (string, error)
- func PolicyToUnstructured(r *dclService.Policy) *unstructured.Resource
- func SetPolicyMemberPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyWithEtagPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func UnstructuredToAttestor(u *unstructured.Resource) (*dclService.Attestor, error)
- func UnstructuredToPolicy(u *unstructured.Resource) (*dclService.Policy, error)
- type Attestor
- func (r *Attestor) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Attestor) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Attestor) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Attestor) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Attestor) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Attestor) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Attestor) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Attestor) ID(resource *unstructured.Resource) (string, error)
- func (r *Attestor) STV() unstructured.ServiceTypeVersion
- func (r *Attestor) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Attestor) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Attestor) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Policy
- func (r *Policy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Policy) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Policy) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Policy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Policy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Policy) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Policy) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Policy) ID(resource *unstructured.Resource) (string, error)
- func (r *Policy) STV() unstructured.ServiceTypeVersion
- func (r *Policy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Policy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Policy) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAttestor ¶
func ApplyAttestor(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyPolicy ¶
func ApplyPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func AttestorHasDiff ¶
func AttestorHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func AttestorID ¶
func AttestorID(u *unstructured.Resource) (string, error)
func AttestorToUnstructured ¶
func AttestorToUnstructured(r *dclService.Attestor) *unstructured.Resource
func DeleteAttestor ¶
func DeletePolicy ¶
func DeletePolicyMemberPolicy ¶ added in v1.1.0
func DeletePolicyMemberPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error
func GetAttestor ¶
func GetAttestor(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicy ¶
func GetPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyMemberPolicy ¶
func GetPolicyMemberPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func GetPolicyPolicy ¶
func GetPolicyPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func ListAttestor ¶
func PolicyHasDiff ¶
func PolicyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func PolicyToUnstructured ¶
func PolicyToUnstructured(r *dclService.Policy) *unstructured.Resource
func SetPolicyMemberPolicy ¶
func SetPolicyMemberPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyPolicy ¶
func SetPolicyPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyWithEtagPolicy ¶ added in v1.1.0
func SetPolicyWithEtagPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func UnstructuredToAttestor ¶
func UnstructuredToAttestor(u *unstructured.Resource) (*dclService.Attestor, error)
func UnstructuredToPolicy ¶
func UnstructuredToPolicy(u *unstructured.Resource) (*dclService.Policy, error)
Types ¶
type Attestor ¶
type Attestor struct{}
func (*Attestor) Apply ¶
func (r *Attestor) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Attestor) DeletePolicyMember ¶ added in v1.1.0
func (r *Attestor) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Attestor) Get ¶
func (r *Attestor) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Attestor) GetPolicy ¶
func (r *Attestor) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Attestor) GetPolicyMember ¶
func (*Attestor) STV ¶
func (r *Attestor) STV() unstructured.ServiceTypeVersion
func (*Attestor) SetPolicy ¶
func (r *Attestor) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Attestor) SetPolicyMember ¶
func (r *Attestor) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Attestor) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Attestor) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Policy ¶
type Policy struct{}
func (*Policy) Apply ¶
func (r *Policy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Policy) DeletePolicyMember ¶ added in v1.1.0
func (r *Policy) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Policy) Get ¶
func (r *Policy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Policy) GetPolicy ¶
func (r *Policy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Policy) GetPolicyMember ¶
func (*Policy) STV ¶
func (r *Policy) STV() unstructured.ServiceTypeVersion
func (*Policy) SetPolicy ¶
func (r *Policy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Policy) SetPolicyMember ¶
func (r *Policy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Policy) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Policy) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)