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 ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: powergridapi.GroupName, Version: "v10"}
SchemeGroupVersion is a group version used to register these objects
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Command.
func (*Command) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Command) DeepCopyObject ¶
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.