Documentation ¶
Overview ¶
Copyright 2020 The Knative Authors
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 2020 The Knative Authors ¶
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
- func AccessToken() (string, error)
- func New(ctx context.Context) (*slack.Client, error)
- func NewBinding(secret corev1.LocalObjectReference) psbinding.Bindable
- func ReadKey(key string) (string, error)
- type SlackbotBinding
- func (sb *SlackbotBinding) DeepCopyObject() runtime.Object
- func (sb *SlackbotBinding) Do(ctx context.Context, ps *duckv1.WithPod)
- func (sb *SlackbotBinding) GetAnnotations() map[string]string
- func (sb *SlackbotBinding) GetBindingStatus() duck.BindableStatus
- func (sb *SlackbotBinding) GetClusterName() string
- func (sb *SlackbotBinding) GetCreationTimestamp() v1.Time
- func (sb *SlackbotBinding) GetDeletionGracePeriodSeconds() *int64
- func (sb *SlackbotBinding) GetDeletionTimestamp() *v1.Time
- func (sb *SlackbotBinding) GetFinalizers() []string
- func (sb *SlackbotBinding) GetGenerateName() string
- func (sb *SlackbotBinding) GetGeneration() int64
- func (sb *SlackbotBinding) GetGroupVersionKind() schema.GroupVersionKind
- func (sb *SlackbotBinding) GetLabels() map[string]string
- func (sb *SlackbotBinding) GetManagedFields() []v1.ManagedFieldsEntry
- func (sb *SlackbotBinding) GetName() string
- func (sb *SlackbotBinding) GetNamespace() string
- func (sb *SlackbotBinding) GetObjectKind() schema.ObjectKind
- func (sb *SlackbotBinding) GetObjectMeta() v1.Object
- func (sb *SlackbotBinding) GetOwnerReferences() []v1.OwnerReference
- func (sb *SlackbotBinding) GetResourceVersion() string
- func (sb *SlackbotBinding) GetSelfLink() string
- func (sb *SlackbotBinding) GetSubject() tracker.Reference
- func (sb *SlackbotBinding) GetUID() types.UID
- func (sb *SlackbotBinding) GroupVersionKind() schema.GroupVersionKind
- func (sb *SlackbotBinding) SetAnnotations(annotations map[string]string)
- func (sb *SlackbotBinding) SetClusterName(clusterName string)
- func (sb *SlackbotBinding) SetCreationTimestamp(timestamp v1.Time)
- func (sb *SlackbotBinding) SetDeletionGracePeriodSeconds(*int64)
- func (sb *SlackbotBinding) SetDeletionTimestamp(timestamp *v1.Time)
- func (sb *SlackbotBinding) SetFinalizers(finalizers []string)
- func (sb *SlackbotBinding) SetGenerateName(name string)
- func (sb *SlackbotBinding) SetGeneration(generation int64)
- func (sb *SlackbotBinding) SetGroupVersionKind(gvk schema.GroupVersionKind)
- func (sb *SlackbotBinding) SetLabels(labels map[string]string)
- func (sb *SlackbotBinding) SetManagedFields(managedFields []v1.ManagedFieldsEntry)
- func (sb *SlackbotBinding) SetName(name string)
- func (sb *SlackbotBinding) SetNamespace(namespace string)
- func (sb *SlackbotBinding) SetOwnerReferences([]v1.OwnerReference)
- func (sb *SlackbotBinding) SetResourceVersion(version string)
- func (sb *SlackbotBinding) SetSelfLink(selfLink string)
- func (sb *SlackbotBinding) SetUID(uid types.UID)
- func (sb *SlackbotBinding) Undo(ctx context.Context, ps *duckv1.WithPod)
Constants ¶
const ( VolumeName = "slackbot-binding" MountPath = "/var/bindings/slackbot" )
Variables ¶
This section is empty.
Functions ¶
func AccessToken ¶
AccessToken reads the file named accessToken that is mounted by the SlackBinding.
func NewBinding ¶
func NewBinding(secret corev1.LocalObjectReference) psbinding.Bindable
Types ¶
type SlackbotBinding ¶
type SlackbotBinding struct {
Secret corev1.LocalObjectReference
}
func (*SlackbotBinding) DeepCopyObject ¶
func (sb *SlackbotBinding) DeepCopyObject() runtime.Object
func (*SlackbotBinding) GetAnnotations ¶
func (sb *SlackbotBinding) GetAnnotations() map[string]string
func (*SlackbotBinding) GetBindingStatus ¶
func (sb *SlackbotBinding) GetBindingStatus() duck.BindableStatus
func (*SlackbotBinding) GetClusterName ¶
func (sb *SlackbotBinding) GetClusterName() string
func (*SlackbotBinding) GetCreationTimestamp ¶
func (sb *SlackbotBinding) GetCreationTimestamp() v1.Time
func (*SlackbotBinding) GetDeletionGracePeriodSeconds ¶
func (sb *SlackbotBinding) GetDeletionGracePeriodSeconds() *int64
func (*SlackbotBinding) GetDeletionTimestamp ¶
func (sb *SlackbotBinding) GetDeletionTimestamp() *v1.Time
func (*SlackbotBinding) GetFinalizers ¶
func (sb *SlackbotBinding) GetFinalizers() []string
func (*SlackbotBinding) GetGenerateName ¶
func (sb *SlackbotBinding) GetGenerateName() string
func (*SlackbotBinding) GetGeneration ¶
func (sb *SlackbotBinding) GetGeneration() int64
func (*SlackbotBinding) GetGroupVersionKind ¶
func (sb *SlackbotBinding) GetGroupVersionKind() schema.GroupVersionKind
func (*SlackbotBinding) GetLabels ¶
func (sb *SlackbotBinding) GetLabels() map[string]string
func (*SlackbotBinding) GetManagedFields ¶
func (sb *SlackbotBinding) GetManagedFields() []v1.ManagedFieldsEntry
func (*SlackbotBinding) GetName ¶
func (sb *SlackbotBinding) GetName() string
func (*SlackbotBinding) GetNamespace ¶
func (sb *SlackbotBinding) GetNamespace() string
func (*SlackbotBinding) GetObjectKind ¶
func (sb *SlackbotBinding) GetObjectKind() schema.ObjectKind
func (*SlackbotBinding) GetObjectMeta ¶
func (sb *SlackbotBinding) GetObjectMeta() v1.Object
func (*SlackbotBinding) GetOwnerReferences ¶
func (sb *SlackbotBinding) GetOwnerReferences() []v1.OwnerReference
func (*SlackbotBinding) GetResourceVersion ¶
func (sb *SlackbotBinding) GetResourceVersion() string
func (*SlackbotBinding) GetSelfLink ¶
func (sb *SlackbotBinding) GetSelfLink() string
func (*SlackbotBinding) GetSubject ¶
func (sb *SlackbotBinding) GetSubject() tracker.Reference
func (*SlackbotBinding) GetUID ¶
func (sb *SlackbotBinding) GetUID() types.UID
func (*SlackbotBinding) GroupVersionKind ¶
func (sb *SlackbotBinding) GroupVersionKind() schema.GroupVersionKind
func (*SlackbotBinding) SetAnnotations ¶
func (sb *SlackbotBinding) SetAnnotations(annotations map[string]string)
func (*SlackbotBinding) SetClusterName ¶
func (sb *SlackbotBinding) SetClusterName(clusterName string)
func (*SlackbotBinding) SetCreationTimestamp ¶
func (sb *SlackbotBinding) SetCreationTimestamp(timestamp v1.Time)
func (*SlackbotBinding) SetDeletionGracePeriodSeconds ¶
func (sb *SlackbotBinding) SetDeletionGracePeriodSeconds(*int64)
func (*SlackbotBinding) SetDeletionTimestamp ¶
func (sb *SlackbotBinding) SetDeletionTimestamp(timestamp *v1.Time)
func (*SlackbotBinding) SetFinalizers ¶
func (sb *SlackbotBinding) SetFinalizers(finalizers []string)
func (*SlackbotBinding) SetGenerateName ¶
func (sb *SlackbotBinding) SetGenerateName(name string)
func (*SlackbotBinding) SetGeneration ¶
func (sb *SlackbotBinding) SetGeneration(generation int64)
func (*SlackbotBinding) SetGroupVersionKind ¶
func (sb *SlackbotBinding) SetGroupVersionKind(gvk schema.GroupVersionKind)
func (*SlackbotBinding) SetLabels ¶
func (sb *SlackbotBinding) SetLabels(labels map[string]string)
func (*SlackbotBinding) SetManagedFields ¶
func (sb *SlackbotBinding) SetManagedFields(managedFields []v1.ManagedFieldsEntry)
func (*SlackbotBinding) SetName ¶
func (sb *SlackbotBinding) SetName(name string)
func (*SlackbotBinding) SetNamespace ¶
func (sb *SlackbotBinding) SetNamespace(namespace string)
func (*SlackbotBinding) SetOwnerReferences ¶
func (sb *SlackbotBinding) SetOwnerReferences([]v1.OwnerReference)
func (*SlackbotBinding) SetResourceVersion ¶
func (sb *SlackbotBinding) SetResourceVersion(version string)
func (*SlackbotBinding) SetSelfLink ¶
func (sb *SlackbotBinding) SetSelfLink(selfLink string)
func (*SlackbotBinding) SetUID ¶
func (sb *SlackbotBinding) SetUID(uid types.UID)