storage

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 7 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyBucket

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

func BucketHasDiff

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

func BucketID

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

func BucketToUnstructured

func BucketToUnstructured(r *dclService.Bucket) *unstructured.Resource

func DeleteBucket

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

func DeletePolicyMemberBucket added in v1.1.0

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

func GetBucket

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

func GetPolicyBucket

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

func GetPolicyMemberBucket

func GetPolicyMemberBucket(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func ListBucket

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

func SetPolicyWithEtagBucket added in v1.1.0

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

func UnstructuredToBucket

func UnstructuredToBucket(u *unstructured.Resource) (*dclService.Bucket, error)

Types

type Bucket

type Bucket struct{}

func (*Bucket) Apply

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

func (*Bucket) Delete

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

func (*Bucket) DeletePolicyMember added in v1.1.0

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

func (*Bucket) Get

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

func (*Bucket) GetPolicy

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

func (*Bucket) GetPolicyMember

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

func (*Bucket) HasDiff

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

func (*Bucket) ID

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

func (*Bucket) STV

func (*Bucket) SetPolicy

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

func (*Bucket) SetPolicyMember

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

func (*Bucket) SetPolicyWithEtag added in v1.1.0

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

Jump to

Keyboard shortcuts

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