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 ¶
- func ApplyTopic(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteTopic(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetTopic(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListTopic(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func TopicHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func TopicID(u *unstructured.Resource) (string, error)
- func TopicToUnstructured(r *dclService.Topic) *unstructured.Resource
- func UnstructuredToTopic(u *unstructured.Resource) (*dclService.Topic, error)
- type Topic
- func (r *Topic) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Topic) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Topic) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Topic) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Topic) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Topic) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Topic) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Topic) ID(resource *unstructured.Resource) (string, error)
- func (r *Topic) STV() unstructured.ServiceTypeVersion
- func (r *Topic) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Topic) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Topic) 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 ApplyTopic ¶
func ApplyTopic(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteTopic ¶
func GetTopic ¶
func GetTopic(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func TopicHasDiff ¶
func TopicHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func TopicToUnstructured ¶
func TopicToUnstructured(r *dclService.Topic) *unstructured.Resource
func UnstructuredToTopic ¶
func UnstructuredToTopic(u *unstructured.Resource) (*dclService.Topic, error)
Types ¶
type Topic ¶
type Topic struct{}
func (*Topic) Apply ¶
func (r *Topic) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Topic) DeletePolicyMember ¶ added in v1.1.0
func (r *Topic) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Topic) Get ¶
func (r *Topic) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Topic) GetPolicy ¶
func (r *Topic) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Topic) GetPolicyMember ¶
func (*Topic) STV ¶
func (r *Topic) STV() unstructured.ServiceTypeVersion
func (*Topic) SetPolicy ¶
func (r *Topic) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Topic) SetPolicyMember ¶
func (r *Topic) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Topic) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Topic) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
Click to show internal directories.
Click to hide internal directories.