Documentation ¶
Overview ¶
Copyright 2024 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 2024 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 2024 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 ApplyChannel(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyGoogleChannelConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyTrigger(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ChannelHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func ChannelID(u *unstructured.Resource) (string, error)
- func ChannelToUnstructured(r *dclService.Channel) *unstructured.Resource
- func DeleteChannel(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteGoogleChannelConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteTrigger(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetChannel(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetGoogleChannelConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetTrigger(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GoogleChannelConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func GoogleChannelConfigID(u *unstructured.Resource) (string, error)
- func GoogleChannelConfigToUnstructured(r *dclService.GoogleChannelConfig) *unstructured.Resource
- func ListChannel(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListTrigger(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func TriggerHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func TriggerID(u *unstructured.Resource) (string, error)
- func TriggerToUnstructured(r *dclService.Trigger) *unstructured.Resource
- func UnstructuredToChannel(u *unstructured.Resource) (*dclService.Channel, error)
- func UnstructuredToGoogleChannelConfig(u *unstructured.Resource) (*dclService.GoogleChannelConfig, error)
- func UnstructuredToTrigger(u *unstructured.Resource) (*dclService.Trigger, error)
- type Channel
- func (r *Channel) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Channel) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Channel) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Channel) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Channel) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Channel) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Channel) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Channel) ID(resource *unstructured.Resource) (string, error)
- func (r *Channel) STV() unstructured.ServiceTypeVersion
- func (r *Channel) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Channel) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Channel) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type GoogleChannelConfig
- func (r *GoogleChannelConfig) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GoogleChannelConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *GoogleChannelConfig) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *GoogleChannelConfig) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *GoogleChannelConfig) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *GoogleChannelConfig) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GoogleChannelConfig) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *GoogleChannelConfig) ID(resource *unstructured.Resource) (string, error)
- func (r *GoogleChannelConfig) STV() unstructured.ServiceTypeVersion
- func (r *GoogleChannelConfig) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GoogleChannelConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *GoogleChannelConfig) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Trigger
- func (r *Trigger) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Trigger) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Trigger) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Trigger) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Trigger) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Trigger) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Trigger) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Trigger) ID(resource *unstructured.Resource) (string, error)
- func (r *Trigger) STV() unstructured.ServiceTypeVersion
- func (r *Trigger) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Trigger) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Trigger) 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 ApplyChannel ¶ added in v1.19.0
func ApplyChannel(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyGoogleChannelConfig ¶ added in v1.20.0
func ApplyGoogleChannelConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyTrigger ¶
func ApplyTrigger(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ChannelHasDiff ¶ added in v1.19.0
func ChannelHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func ChannelToUnstructured ¶ added in v1.19.0
func ChannelToUnstructured(r *dclService.Channel) *unstructured.Resource
func DeleteChannel ¶ added in v1.19.0
func DeleteGoogleChannelConfig ¶ added in v1.20.0
func DeleteTrigger ¶
func GetChannel ¶ added in v1.19.0
func GetChannel(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetGoogleChannelConfig ¶ added in v1.20.0
func GetGoogleChannelConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetTrigger ¶
func GetTrigger(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GoogleChannelConfigHasDiff ¶ added in v1.20.0
func GoogleChannelConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func GoogleChannelConfigID ¶ added in v1.20.0
func GoogleChannelConfigID(u *unstructured.Resource) (string, error)
func GoogleChannelConfigToUnstructured ¶ added in v1.20.0
func GoogleChannelConfigToUnstructured(r *dclService.GoogleChannelConfig) *unstructured.Resource
func ListChannel ¶ added in v1.19.0
func ListTrigger ¶
func TriggerHasDiff ¶
func TriggerHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func TriggerToUnstructured ¶
func TriggerToUnstructured(r *dclService.Trigger) *unstructured.Resource
func UnstructuredToChannel ¶ added in v1.19.0
func UnstructuredToChannel(u *unstructured.Resource) (*dclService.Channel, error)
func UnstructuredToGoogleChannelConfig ¶ added in v1.20.0
func UnstructuredToGoogleChannelConfig(u *unstructured.Resource) (*dclService.GoogleChannelConfig, error)
func UnstructuredToTrigger ¶
func UnstructuredToTrigger(u *unstructured.Resource) (*dclService.Trigger, error)
Types ¶
type Channel ¶ added in v1.19.0
type Channel struct{}
func (*Channel) Apply ¶ added in v1.19.0
func (r *Channel) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Channel) DeletePolicyMember ¶ added in v1.19.0
func (r *Channel) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Channel) Get ¶ added in v1.19.0
func (r *Channel) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Channel) GetPolicy ¶ added in v1.19.0
func (r *Channel) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Channel) GetPolicyMember ¶ added in v1.19.0
func (*Channel) ID ¶ added in v1.19.0
func (r *Channel) ID(resource *unstructured.Resource) (string, error)
func (*Channel) STV ¶ added in v1.19.0
func (r *Channel) STV() unstructured.ServiceTypeVersion
func (*Channel) SetPolicy ¶ added in v1.19.0
func (r *Channel) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Channel) SetPolicyMember ¶ added in v1.19.0
func (r *Channel) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Channel) SetPolicyWithEtag ¶ added in v1.19.0
func (r *Channel) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type GoogleChannelConfig ¶ added in v1.20.0
type GoogleChannelConfig struct{}
func (*GoogleChannelConfig) Apply ¶ added in v1.20.0
func (r *GoogleChannelConfig) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*GoogleChannelConfig) Delete ¶ added in v1.20.0
func (r *GoogleChannelConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*GoogleChannelConfig) DeletePolicyMember ¶ added in v1.20.0
func (r *GoogleChannelConfig) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*GoogleChannelConfig) Get ¶ added in v1.20.0
func (r *GoogleChannelConfig) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*GoogleChannelConfig) GetPolicy ¶ added in v1.20.0
func (r *GoogleChannelConfig) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*GoogleChannelConfig) GetPolicyMember ¶ added in v1.20.0
func (r *GoogleChannelConfig) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*GoogleChannelConfig) HasDiff ¶ added in v1.20.0
func (r *GoogleChannelConfig) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*GoogleChannelConfig) ID ¶ added in v1.20.0
func (r *GoogleChannelConfig) ID(resource *unstructured.Resource) (string, error)
func (*GoogleChannelConfig) STV ¶ added in v1.20.0
func (r *GoogleChannelConfig) STV() unstructured.ServiceTypeVersion
func (*GoogleChannelConfig) SetPolicy ¶ added in v1.20.0
func (r *GoogleChannelConfig) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*GoogleChannelConfig) SetPolicyMember ¶ added in v1.20.0
func (r *GoogleChannelConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*GoogleChannelConfig) SetPolicyWithEtag ¶ added in v1.20.0
func (r *GoogleChannelConfig) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Trigger ¶
type Trigger struct{}
func (*Trigger) Apply ¶
func (r *Trigger) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Trigger) DeletePolicyMember ¶ added in v1.1.0
func (r *Trigger) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Trigger) Get ¶
func (r *Trigger) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Trigger) GetPolicy ¶
func (r *Trigger) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Trigger) GetPolicyMember ¶
func (*Trigger) STV ¶
func (r *Trigger) STV() unstructured.ServiceTypeVersion
func (*Trigger) SetPolicy ¶
func (r *Trigger) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Trigger) SetPolicyMember ¶
func (r *Trigger) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Trigger) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Trigger) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)