osconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOSPolicyAssignment

func ApplyOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyPatchDeployment

func ApplyPatchDeployment(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func DeleteOSPolicyAssignment

func DeleteOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeletePatchDeployment

func DeletePatchDeployment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func GetOSPolicyAssignment

func GetOSPolicyAssignment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetPatchDeployment

func GetPatchDeployment(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func ListOSPolicyAssignment

func ListOSPolicyAssignment(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListPatchDeployment

func ListPatchDeployment(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)

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 PatchDeploymentHasDiff

func PatchDeploymentHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func PatchDeploymentID

func PatchDeploymentID(u *unstructured.Resource) (string, error)

func PatchDeploymentToUnstructured

func PatchDeploymentToUnstructured(r *dclService.PatchDeployment) *unstructured.Resource

func UnstructuredToOSPolicyAssignment

func UnstructuredToOSPolicyAssignment(u *unstructured.Resource) (*dclService.OSPolicyAssignment, error)

func UnstructuredToPatchDeployment

func UnstructuredToPatchDeployment(u *unstructured.Resource) (*dclService.PatchDeployment, error)

Types

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

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

type PatchDeployment

type PatchDeployment struct{}

func (*PatchDeployment) Apply

func (r *PatchDeployment) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*PatchDeployment) Delete

func (r *PatchDeployment) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*PatchDeployment) Get

func (*PatchDeployment) GetPolicy

func (r *PatchDeployment) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*PatchDeployment) GetPolicyMember

func (r *PatchDeployment) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*PatchDeployment) HasDiff

func (r *PatchDeployment) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*PatchDeployment) ID

func (r *PatchDeployment) ID(resource *unstructured.Resource) (string, error)

func (*PatchDeployment) STV

func (*PatchDeployment) SetPolicy

func (r *PatchDeployment) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*PatchDeployment) SetPolicyMember

func (r *PatchDeployment) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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