Documentation ¶
Overview ¶
Package virtual contains virtual resources.
Index ¶
Constants ¶
View Source
const CurrentUserID = "current"
CurrentUserID is the default and the only allowed ID for CurrentUser resource.
tsgen:CurrentUserID
View Source
const ( // CurrentUserType is the type of CurrentUser resource. // // tsgen:CurrentUserType CurrentUserType = resource.Type("CurrentUsers.omni.sidero.dev") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentUser ¶
type CurrentUser = typed.Resource[CurrentUserSpec, CurrentUserExtension]
CurrentUser resource describes a user current user.
func NewCurrentUser ¶
func NewCurrentUser() *CurrentUser
NewCurrentUser creates a new CurrentUser resource.
type CurrentUserExtension ¶
type CurrentUserExtension struct{}
CurrentUserExtension providers auxiliary methods for CurrentUser resource.
func (CurrentUserExtension) ResourceDefinition ¶
func (CurrentUserExtension) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements typed.Extension interface.
type CurrentUserSpec ¶
type CurrentUserSpec = protobuf.ResourceSpec[specs.CurrentUserSpec, *specs.CurrentUserSpec]
CurrentUserSpec wraps specs.CurrentUserSpec.
Click to show internal directories.
Click to hide internal directories.