apiconv

package
v1.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C2D_Credentials

func C2D_Credentials(creds []cosmowebauthn.Credential) []*dashv1alpha1.Credential

func C2D_DeletePolicy

func C2D_DeletePolicy(deletePolicy string) *dashv1alpha1.DeletePolicy

func C2D_NetworkRules

func C2D_NetworkRules(netRules []cosmov1alpha1.NetworkRule, urlMap map[string]string) []*dashv1alpha1.NetworkRule

func C2D_User

func C2D_User(user cosmov1alpha1.User, opts ...UserConvertOptions) *dashv1alpha1.User

func C2D_UserAddons

func C2D_UserAddons(addons []cosmov1alpha1.UserAddon) []*dashv1alpha1.UserAddon

func C2D_Users

func C2D_Users(users []cosmov1alpha1.User, opts ...UserConvertOptions) []*dashv1alpha1.User

func C2S_UserRole

func C2S_UserRole(apiRoles []cosmov1alpha1.UserRole) []string

func D2C_DeletePolicy

func D2C_DeletePolicy(deletePolicy *dashv1alpha1.DeletePolicy) string

func D2C_NetworkRules

func D2C_NetworkRules(netRules []*dashv1alpha1.NetworkRule) []cosmov1alpha1.NetworkRule

func D2C_UserAddons

func D2C_UserAddons(addons []*dashv1alpha1.UserAddon) []cosmov1alpha1.UserAddon

func D2S_UserAddons

func D2S_UserAddons(addons []*dashv1alpha1.UserAddon) []string

func DecodeYAML

func DecodeYAML[T client.Object](raw string, obj T) error

func EventCount

func EventCount(v eventsv1.Event) int32

func EventObservedTime

func EventObservedTime(v eventsv1.Event) (first time.Time, last time.Time)

func K2D_Events

func K2D_Events(events []eventsv1.Event) []*dashv1alpha1.Event

func S2C_UserRoles

func S2C_UserRoles(roles []string) []cosmov1alpha1.UserRole

func S2D_UserAddons

func S2D_UserAddons(addons []string) ([]*dashv1alpha1.UserAddon, error)

func ToYAML

func ToYAML(obj client.Object) *string

func WithAddonsRaw

func WithAddonsRaw(addons []cosmov1alpha1.InstanceObject) func(c *cosmov1alpha1.User, d *dashv1alpha1.User)

func WithTemplateRaw

func WithTemplateRaw(withRaw *bool) func(c cosmov1alpha1.TemplateObject, d *dashv1alpha1.Template)

func WithUserRaw

func WithUserRaw() func(c *cosmov1alpha1.User, d *dashv1alpha1.User)

func WithWorkspaceIngressRouteRaw

func WithWorkspaceIngressRouteRaw(ir *traefikv1.IngressRoute) func(c *cosmov1alpha1.Workspace, d *dashv1alpha1.Workspace)

func WithWorkspaceInstanceRaw

func WithWorkspaceInstanceRaw(inst *cosmov1alpha1.Instance) func(c *cosmov1alpha1.Workspace, d *dashv1alpha1.Workspace)

func WithWorkspaceRaw

func WithWorkspaceRaw() func(c *cosmov1alpha1.Workspace, d *dashv1alpha1.Workspace)

Types

type TemplateConvertOptions

type TemplateConvertOptions func(c cosmov1alpha1.TemplateObject, d *dashv1alpha1.Template)

type UserConvertOptions

type UserConvertOptions func(c *cosmov1alpha1.User, d *dashv1alpha1.User)

type WorkspaceConvertOptions

type WorkspaceConvertOptions func(c *cosmov1alpha1.Workspace, d *dashv1alpha1.Workspace)

Jump to

Keyboard shortcuts

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