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.
Index ¶
- func ApplyGuestPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteGuestPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetGuestPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GuestPolicyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func GuestPolicyID(u *unstructured.Resource) (string, error)
- func GuestPolicyToUnstructured(r *dclService.GuestPolicy) *unstructured.Resource
- func ListGuestPolicy(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func ListOSPolicyAssignment(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func OSPolicyAssignmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func OSPolicyAssignmentID(u *unstructured.Resource) (string, error)
- func OSPolicyAssignmentToUnstructured(r *dclService.OSPolicyAssignment) *unstructured.Resource
- func UnstructuredToGuestPolicy(u *unstructured.Resource) (*dclService.GuestPolicy, error)
- func UnstructuredToOSPolicyAssignment(u *unstructured.Resource) (*dclService.OSPolicyAssignment, error)
- type GuestPolicy
- func (r *GuestPolicy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GuestPolicy) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *GuestPolicy) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *GuestPolicy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *GuestPolicy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *GuestPolicy) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GuestPolicy) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *GuestPolicy) ID(resource *unstructured.Resource) (string, error)
- func (r *GuestPolicy) STV() unstructured.ServiceTypeVersion
- func (r *GuestPolicy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GuestPolicy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GuestPolicy) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type OSPolicyAssignment
- func (r *OSPolicyAssignment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OSPolicyAssignment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *OSPolicyAssignment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *OSPolicyAssignment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *OSPolicyAssignment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *OSPolicyAssignment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OSPolicyAssignment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *OSPolicyAssignment) ID(resource *unstructured.Resource) (string, error)
- func (r *OSPolicyAssignment) STV() unstructured.ServiceTypeVersion
- func (r *OSPolicyAssignment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OSPolicyAssignment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OSPolicyAssignment) 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 ApplyGuestPolicy ¶
func ApplyGuestPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyOSPolicyAssignment ¶
func ApplyOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteGuestPolicy ¶
func GetGuestPolicy ¶
func GetGuestPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetOSPolicyAssignment ¶
func GetOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GuestPolicyHasDiff ¶
func GuestPolicyHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func GuestPolicyID ¶
func GuestPolicyID(u *unstructured.Resource) (string, error)
func GuestPolicyToUnstructured ¶
func GuestPolicyToUnstructured(r *dclService.GuestPolicy) *unstructured.Resource
func ListGuestPolicy ¶
func ListOSPolicyAssignment ¶
func OSPolicyAssignmentHasDiff ¶
func OSPolicyAssignmentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func OSPolicyAssignmentID ¶
func OSPolicyAssignmentID(u *unstructured.Resource) (string, error)
func OSPolicyAssignmentToUnstructured ¶
func OSPolicyAssignmentToUnstructured(r *dclService.OSPolicyAssignment) *unstructured.Resource
func UnstructuredToGuestPolicy ¶
func UnstructuredToGuestPolicy(u *unstructured.Resource) (*dclService.GuestPolicy, error)
func UnstructuredToOSPolicyAssignment ¶
func UnstructuredToOSPolicyAssignment(u *unstructured.Resource) (*dclService.OSPolicyAssignment, error)
Types ¶
type GuestPolicy ¶
type GuestPolicy struct{}
func (*GuestPolicy) Apply ¶
func (r *GuestPolicy) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*GuestPolicy) Delete ¶
func (r *GuestPolicy) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*GuestPolicy) DeletePolicyMember ¶ added in v1.1.0
func (r *GuestPolicy) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*GuestPolicy) Get ¶
func (r *GuestPolicy) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*GuestPolicy) GetPolicy ¶
func (r *GuestPolicy) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*GuestPolicy) GetPolicyMember ¶
func (r *GuestPolicy) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*GuestPolicy) HasDiff ¶
func (r *GuestPolicy) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*GuestPolicy) ID ¶
func (r *GuestPolicy) ID(resource *unstructured.Resource) (string, error)
func (*GuestPolicy) STV ¶
func (r *GuestPolicy) STV() unstructured.ServiceTypeVersion
func (*GuestPolicy) SetPolicy ¶
func (r *GuestPolicy) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*GuestPolicy) SetPolicyMember ¶
func (r *GuestPolicy) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*GuestPolicy) SetPolicyWithEtag ¶ added in v1.1.0
func (r *GuestPolicy) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type OSPolicyAssignment ¶
type OSPolicyAssignment struct{}
func (*OSPolicyAssignment) Apply ¶
func (r *OSPolicyAssignment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*OSPolicyAssignment) Delete ¶
func (r *OSPolicyAssignment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*OSPolicyAssignment) DeletePolicyMember ¶ added in v1.1.0
func (r *OSPolicyAssignment) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*OSPolicyAssignment) Get ¶
func (r *OSPolicyAssignment) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*OSPolicyAssignment) GetPolicy ¶
func (r *OSPolicyAssignment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*OSPolicyAssignment) GetPolicyMember ¶
func (r *OSPolicyAssignment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*OSPolicyAssignment) HasDiff ¶
func (r *OSPolicyAssignment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*OSPolicyAssignment) ID ¶
func (r *OSPolicyAssignment) ID(resource *unstructured.Resource) (string, error)
func (*OSPolicyAssignment) STV ¶
func (r *OSPolicyAssignment) STV() unstructured.ServiceTypeVersion
func (*OSPolicyAssignment) SetPolicy ¶
func (r *OSPolicyAssignment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*OSPolicyAssignment) SetPolicyMember ¶
func (r *OSPolicyAssignment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*OSPolicyAssignment) SetPolicyWithEtag ¶ added in v1.1.0
func (r *OSPolicyAssignment) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)