Documentation ¶
Overview ¶
Copyright 2023 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 2023 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 ApplyBackup(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyInstance(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func BackupHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func BackupID(u *unstructured.Resource) (string, error)
- func BackupToUnstructured(r *dclService.Backup) *unstructured.Resource
- func DeleteBackup(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteInstance(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetBackup(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetInstance(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func InstanceHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func InstanceID(u *unstructured.Resource) (string, error)
- func InstanceToUnstructured(r *dclService.Instance) *unstructured.Resource
- func ListBackup(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListInstance(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func UnstructuredToBackup(u *unstructured.Resource) (*dclService.Backup, error)
- func UnstructuredToInstance(u *unstructured.Resource) (*dclService.Instance, error)
- type Backup
- func (r *Backup) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Backup) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Backup) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Backup) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Backup) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Backup) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Backup) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Backup) ID(resource *unstructured.Resource) (string, error)
- func (r *Backup) STV() unstructured.ServiceTypeVersion
- func (r *Backup) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Backup) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Backup) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Instance
- func (r *Instance) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Instance) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Instance) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Instance) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Instance) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Instance) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Instance) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Instance) ID(resource *unstructured.Resource) (string, error)
- func (r *Instance) STV() unstructured.ServiceTypeVersion
- func (r *Instance) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Instance) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Instance) 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 ApplyBackup ¶
func ApplyBackup(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyInstance ¶
func ApplyInstance(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func BackupHasDiff ¶
func BackupHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func BackupToUnstructured ¶
func BackupToUnstructured(r *dclService.Backup) *unstructured.Resource
func DeleteBackup ¶
func DeleteInstance ¶
func GetBackup ¶
func GetBackup(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetInstance ¶
func GetInstance(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func InstanceHasDiff ¶
func InstanceHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func InstanceID ¶
func InstanceID(u *unstructured.Resource) (string, error)
func InstanceToUnstructured ¶
func InstanceToUnstructured(r *dclService.Instance) *unstructured.Resource
func ListBackup ¶
func ListInstance ¶
func UnstructuredToBackup ¶
func UnstructuredToBackup(u *unstructured.Resource) (*dclService.Backup, error)
func UnstructuredToInstance ¶
func UnstructuredToInstance(u *unstructured.Resource) (*dclService.Instance, error)
Types ¶
type Backup ¶
type Backup struct{}
func (*Backup) Apply ¶
func (r *Backup) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Backup) DeletePolicyMember ¶ added in v1.1.0
func (r *Backup) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Backup) Get ¶
func (r *Backup) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Backup) GetPolicy ¶
func (r *Backup) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Backup) GetPolicyMember ¶
func (*Backup) STV ¶
func (r *Backup) STV() unstructured.ServiceTypeVersion
func (*Backup) SetPolicy ¶
func (r *Backup) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Backup) SetPolicyMember ¶
func (r *Backup) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Backup) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Backup) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Instance ¶
type Instance struct{}
func (*Instance) Apply ¶
func (r *Instance) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Instance) DeletePolicyMember ¶ added in v1.1.0
func (r *Instance) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Instance) Get ¶
func (r *Instance) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Instance) GetPolicy ¶
func (r *Instance) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Instance) GetPolicyMember ¶
func (*Instance) STV ¶
func (r *Instance) STV() unstructured.ServiceTypeVersion
func (*Instance) SetPolicy ¶
func (r *Instance) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Instance) SetPolicyMember ¶
func (r *Instance) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Instance) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Instance) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)