v10

package
v0.0.0-...-35d2b67 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v10 represents the Discord API v10. See https://discord.com/developers/docs/reference#api-versioning-api-versions +groupName=powergrid.sportshead.dev +groupGoName=Powergrid

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: powergridapi.GroupName, Version: "v10"}

SchemeGroupVersion is a group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Command

type Command struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`

	Spec CommandSpec `json:"spec"`
}

Command is a Command resource.

func (*Command) DeepCopy

func (in *Command) DeepCopy() *Command

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

func (*Command) DeepCopyInto

func (in *Command) DeepCopyInto(out *Command)

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

func (*Command) DeepCopyObject

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

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

type CommandList

type CommandList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata"`

	Items []Command `json:"items"`
}

CommandList is a collection of Command resources.

func (*CommandList) DeepCopy

func (in *CommandList) DeepCopy() *CommandList

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

func (*CommandList) DeepCopyInto

func (in *CommandList) DeepCopyInto(out *CommandList)

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

func (*CommandList) DeepCopyObject

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

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

type CommandSpec

type CommandSpec struct {
	// ShouldSendDeferred indicates whether to respond with an initial deferred message to Discord. If true, any response from the service will be ignored.
	ShouldSendDeferred bool `json:"shouldSendDeferred,omitempty"`

	ServiceName string `json:"serviceName"`
	// Command represents the Discord command object.
	Command apiextensionsv1.JSON `json:"command"`
}

CommandSpec is the spec of a Command resource.

func (*CommandSpec) DeepCopy

func (in *CommandSpec) DeepCopy() *CommandSpec

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

func (*CommandSpec) DeepCopyInto

func (in *CommandSpec) DeepCopyInto(out *CommandSpec)

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