logging

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 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.

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 ApplyLogBucket

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

func ApplyLogExclusion

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

func ApplyLogMetric

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

func ApplyLogView

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

func DeleteLogBucket

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

func DeleteLogExclusion

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

func DeleteLogMetric

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

func DeleteLogView

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

func GetLogBucket

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

func GetLogExclusion

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

func GetLogMetric

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

func GetLogView

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

func ListLogBucket

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

func ListLogExclusion

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

func ListLogMetric

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

func ListLogView

func ListLogView(ctx context.Context, config *dcl.Config, location string, bucket string, parent string) ([]*unstructured.Resource, error)

func LogBucketHasDiff

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

func LogBucketID

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

func LogBucketToUnstructured

func LogBucketToUnstructured(r *dclService.LogBucket) *unstructured.Resource

func LogExclusionHasDiff

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

func LogExclusionID

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

func LogExclusionToUnstructured

func LogExclusionToUnstructured(r *dclService.LogExclusion) *unstructured.Resource

func LogMetricHasDiff

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

func LogMetricID

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

func LogMetricToUnstructured

func LogMetricToUnstructured(r *dclService.LogMetric) *unstructured.Resource

func LogViewHasDiff

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

func LogViewID

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

func LogViewToUnstructured

func LogViewToUnstructured(r *dclService.LogView) *unstructured.Resource

func UnstructuredToLogBucket

func UnstructuredToLogBucket(u *unstructured.Resource) (*dclService.LogBucket, error)

func UnstructuredToLogExclusion

func UnstructuredToLogExclusion(u *unstructured.Resource) (*dclService.LogExclusion, error)

func UnstructuredToLogMetric

func UnstructuredToLogMetric(u *unstructured.Resource) (*dclService.LogMetric, error)

func UnstructuredToLogView

func UnstructuredToLogView(u *unstructured.Resource) (*dclService.LogView, error)

Types

type LogBucket

type LogBucket struct{}

func (*LogBucket) Apply

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

func (*LogBucket) Delete

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

func (*LogBucket) DeletePolicyMember added in v1.1.0

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

func (*LogBucket) Get

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

func (*LogBucket) GetPolicy

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

func (*LogBucket) GetPolicyMember

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

func (*LogBucket) HasDiff

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

func (*LogBucket) ID

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

func (*LogBucket) STV

func (*LogBucket) SetPolicy

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

func (*LogBucket) SetPolicyMember

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

func (*LogBucket) SetPolicyWithEtag added in v1.1.0

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

type LogExclusion

type LogExclusion struct{}

func (*LogExclusion) Apply

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

func (*LogExclusion) Delete

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

func (*LogExclusion) DeletePolicyMember added in v1.1.0

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

func (*LogExclusion) Get

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

func (*LogExclusion) GetPolicy

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

func (*LogExclusion) GetPolicyMember

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

func (*LogExclusion) HasDiff

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

func (*LogExclusion) ID

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

func (*LogExclusion) STV

func (*LogExclusion) SetPolicy

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

func (*LogExclusion) SetPolicyMember

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

func (*LogExclusion) SetPolicyWithEtag added in v1.1.0

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

type LogMetric

type LogMetric struct{}

func (*LogMetric) Apply

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

func (*LogMetric) Delete

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

func (*LogMetric) DeletePolicyMember added in v1.1.0

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

func (*LogMetric) Get

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

func (*LogMetric) GetPolicy

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

func (*LogMetric) GetPolicyMember

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

func (*LogMetric) HasDiff

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

func (*LogMetric) ID

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

func (*LogMetric) STV

func (*LogMetric) SetPolicy

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

func (*LogMetric) SetPolicyMember

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

func (*LogMetric) SetPolicyWithEtag added in v1.1.0

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

type LogView

type LogView struct{}

func (*LogView) Apply

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

func (*LogView) Delete

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

func (*LogView) DeletePolicyMember added in v1.1.0

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

func (*LogView) Get

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

func (*LogView) GetPolicy

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

func (*LogView) GetPolicyMember

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

func (*LogView) HasDiff

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

func (*LogView) ID

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

func (*LogView) STV

func (*LogView) SetPolicy

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

func (*LogView) SetPolicyMember

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

func (*LogView) SetPolicyWithEtag added in v1.1.0

func (r *LogView) 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