v1

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1 contains API Schema definitions for the notify v1 API group. +kubebuilder:object:generate=true +groupName=notify.shophub.local

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "notify.shophub.local", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	//
	//nolint:staticcheck // SA1019: scheme.Builder still scaffolded by kubebuilder; tracked upstream.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type DiscordChannel

type DiscordChannel struct {
	metav1.TypeMeta `json:",inline"`

	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitzero"`

	// spec defines the desired state of DiscordChannel
	// +required
	Spec DiscordChannelSpec `json:"spec"`

	// status defines the observed state of DiscordChannel
	// +optional
	Status DiscordChannelStatus `json:"status,omitzero"`
}

DiscordChannel is the Schema for the discordchannels API

func (*DiscordChannel) DeepCopy

func (in *DiscordChannel) DeepCopy() *DiscordChannel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscordChannel.

func (*DiscordChannel) DeepCopyInto

func (in *DiscordChannel) DeepCopyInto(out *DiscordChannel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DiscordChannel) DeepCopyObject

func (in *DiscordChannel) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DiscordChannelList

type DiscordChannelList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitzero"`
	Items           []DiscordChannel `json:"items"`
}

DiscordChannelList contains a list of DiscordChannel

func (*DiscordChannelList) DeepCopy

func (in *DiscordChannelList) DeepCopy() *DiscordChannelList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscordChannelList.

func (*DiscordChannelList) DeepCopyInto

func (in *DiscordChannelList) DeepCopyInto(out *DiscordChannelList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DiscordChannelList) DeepCopyObject

func (in *DiscordChannelList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DiscordChannelSpec

type DiscordChannelSpec struct {
	// GuildID is the Discord server (guild) snowflake where the channel lives.
	GuildID string `json:"guildId"`

	// Name is the channel name to create or maintain on the guild.
	Name string `json:"name"`

	// BotTokenRef points to a Secret (key: token) containing the Discord bot token.
	// The bot must hold Manage Channels and Manage Webhooks permissions on the guild.
	BotTokenRef corev1.SecretReference `json:"botTokenRef"`
}

DiscordChannelSpec defines the desired state of DiscordChannel.

func (*DiscordChannelSpec) DeepCopy

func (in *DiscordChannelSpec) DeepCopy() *DiscordChannelSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscordChannelSpec.

func (*DiscordChannelSpec) DeepCopyInto

func (in *DiscordChannelSpec) DeepCopyInto(out *DiscordChannelSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DiscordChannelStatus

type DiscordChannelStatus struct {
	// Conditions track high-level reconcile state.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ChannelID is the snowflake returned by Discord after channel creation.
	// +optional
	ChannelID string `json:"channelId,omitempty"`

	// WebhookSecretName is the Secret (key: webhook-url) that the Shop controller
	// reads to post notifications. Created by this controller after channel setup.
	// +optional
	WebhookSecretName string `json:"webhookSecretName,omitempty"`
}

DiscordChannelStatus defines the observed state of DiscordChannel.

func (*DiscordChannelStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscordChannelStatus.

func (*DiscordChannelStatus) DeepCopyInto

func (in *DiscordChannelStatus) DeepCopyInto(out *DiscordChannelStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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