core

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Overview

Package core provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

This is not autogenerated.

This is not autogenerated.

This is not autogenerated.

This is not autogenerated.

This is not autogenerated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToStruct added in v0.8.80

func MapToStruct(m map[string]interface{}, obj interface{}) error

func StructToMap added in v0.8.80

func StructToMap(obj interface{}) (map[string]interface{}, error)

func UUIDOrUUIDNil added in v0.8.27

func UUIDOrUUIDNil(value *uuid.UUID) uuid.UUID

Types

type AcceptedTermsAt

type AcceptedTermsAt = string

AcceptedTermsAt defines model for accepted_terms_at.

type All added in v1.0.0

type All = bool

All defines model for all.

type AvatarUrl

type AvatarUrl = string

AvatarUrl Link for profile picture

type Bio

type Bio = string

Bio defines model for bio.

type Class added in v1.0.0

type Class = string

Class defines model for class.

type ComponentStyles added in v1.0.0

type ComponentStyles struct {
	// ActiveBgColor The colour of the indicator shown when the background is grabbed by the user. Selector needs to be *core*. Colours may be specified by name (e.g. red), hex (e.g.
	ActiveBgColor *string `json:"active-bg-color,omitempty" yaml:"active-bg-color,omitempty"`

	// ActiveBgOpacity The opacity of the active background indicator. Selector needs to be *core*.
	ActiveBgOpacity *string `json:"active-bg-opacity,omitempty" yaml:"active-bg-opacity,omitempty"`

	// ActiveBgSize The opacity of the active background indicator. Selector needs to be *core*.
	ActiveBgSize *string `json:"active-bg-size,omitempty" yaml:"active-bg-size,omitempty"`

	// Animation The animation to apply to the element. example ripple,bounce,etc
	Animation *map[string]interface{} `json:"animation,omitempty" yaml:"animation,omitempty"`

	// BackgroundBlacken Blackens the node's body for values from 0 to 1; whitens the node's body for values from 0 to -1.
	BackgroundBlacken *float32 `json:"background-blacken,omitempty" yaml:"background-blacken,omitempty"`

	// BackgroundClip How the background image is clipped to the node. Can be 'none', 'node', or 'node-border'.
	BackgroundClip *string `json:"background-clip,omitempty" yaml:"background-clip,omitempty"`

	// BackgroundColor The colour of the node's body. Colours may be specified by name (e.g. red), hex (e.g.
	BackgroundColor *string `json:"background-color,omitempty" yaml:"background-color,omitempty"`

	// BackgroundFit How the background image is fit to the node. Can be 'none', 'contain', or 'cover'.
	BackgroundFit *string `json:"background-fit,omitempty" yaml:"background-fit,omitempty"`

	// BackgroundHeightRelativeTo How the background image's height is determined. Can be 'none', 'inner', or 'outer'.
	BackgroundHeightRelativeTo *string `json:"background-height-relative-to,omitempty" yaml:"background-height-relative-to,omitempty"`

	// BackgroundImage The URL that points to the image to show in the node.
	BackgroundImage *string `json:"background-image,omitempty" yaml:"background-image,omitempty"`

	// BackgroundOffsetX The x offset of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px)
	BackgroundOffsetX *string `json:"background-offset-x,omitempty" yaml:"background-offset-x,omitempty"`

	// BackgroundOffsetY The y offset of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px)
	BackgroundOffsetY *string `json:"background-offset-y,omitempty" yaml:"background-offset-y,omitempty"`

	// BackgroundOpacity The opacity level of the node's background colour
	BackgroundOpacity *float32 `json:"background-opacity,omitempty" yaml:"background-opacity,omitempty"`

	// BackgroundPositionX The x position of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px)
	BackgroundPositionX *string `json:"background-position-x,omitempty" yaml:"background-position-x,omitempty"`

	// BackgroundPositionY The y position of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px)
	BackgroundPositionY *string `json:"background-position-y,omitempty" yaml:"background-position-y,omitempty"`

	// BackgroundWidthRelativeTo How the background image's width is determined. Can be 'none', 'inner', or 'outer'.
	BackgroundWidthRelativeTo *string `json:"background-width-relative-to,omitempty" yaml:"background-width-relative-to,omitempty"`

	// BodyText The text to display for an element's body. Can give a path, e.g. data(id) will label with the elements id
	BodyText *string `json:"body-text,omitempty" yaml:"body-text,omitempty"`

	// BodyTextBackgroundColor The colour of the node's body text background. Colours may be specified by name (e.g. red), hex (e.g.
	BodyTextBackgroundColor *string `json:"body-text-background-color,omitempty" yaml:"body-text-background-color,omitempty"`

	// BodyTextColor The colour of the node's body text. Colours may be specified by name (e.g. red), hex (e.g.
	BodyTextColor *string `json:"body-text-color,omitempty" yaml:"body-text-color,omitempty"`

	// BodyTextDecoration A CSS text decoration to be applied to the node's body text.
	BodyTextDecoration *string `json:"body-text-decoration,omitempty" yaml:"body-text-decoration,omitempty"`

	// BodyTextFontSize The size of the node's body text.
	BodyTextFontSize *float32 `json:"body-text-font-size,omitempty" yaml:"body-text-font-size,omitempty"`

	// BodyTextFontWeight A CSS font weight to be applied to the node's body text.
	BodyTextFontWeight *string `json:"body-text-font-weight,omitempty" yaml:"body-text-font-weight,omitempty"`

	// BodyTextHorizontalAlign A CSS horizontal alignment to be applied to the node's body text.
	BodyTextHorizontalAlign *string `json:"body-text-horizontal-align,omitempty" yaml:"body-text-horizontal-align,omitempty"`

	// BodyTextMaxWidth The maximum width for wrapping text in the node.
	BodyTextMaxWidth *string `json:"body-text-max-width,omitempty" yaml:"body-text-max-width,omitempty"`

	// BodyTextOpacity The opacity of the node's body text, including its outline.
	BodyTextOpacity *float32 `json:"body-text-opacity,omitempty" yaml:"body-text-opacity,omitempty"`

	// BodyTextVerticalAlign A CSS vertical alignment to be applied to the node's body text.
	BodyTextVerticalAlign *string `json:"body-text-vertical-align,omitempty" yaml:"body-text-vertical-align,omitempty"`

	// BodyTextWrap How to wrap the text in the node. Can be 'none', 'wrap', or 'ellipsis'.
	BodyTextWrap *string `json:"body-text-wrap,omitempty" yaml:"body-text-wrap,omitempty"`

	// BorderColor The colour of the node's border. Colours may be specified by name (e.g. red), hex (e.g.
	BorderColor *string `json:"border-color,omitempty" yaml:"border-color,omitempty"`

	// BorderOpacity The opacity of the node's border
	BorderOpacity *float32 `json:"border-opacity,omitempty" yaml:"border-opacity,omitempty"`

	// BorderStyle The style of the node's border
	BorderStyle *ComponentStylesBorderStyle `json:"border-style,omitempty" yaml:"border-style,omitempty"`

	// BorderWidth The size of the node's border.
	BorderWidth *float32 `json:"border-width,omitempty" yaml:"border-width,omitempty"`

	// Color The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g.
	Color *string `json:"color,omitempty" yaml:"color,omitempty"`

	// FontFamily A comma-separated list of font names to use on the label text.
	FontFamily *string `json:"font-family,omitempty" yaml:"font-family,omitempty"`

	// FontSize The size of the label text.
	FontSize *string `json:"font-size,omitempty" yaml:"font-size,omitempty"`

	// FontStyle A CSS font style to be applied to the label text.
	FontStyle *string `json:"font-style,omitempty" yaml:"font-style,omitempty"`

	// FontWeight A CSS font weight to be applied to the label text.
	FontWeight *string `json:"font-weight,omitempty" yaml:"font-weight,omitempty"`

	// Ghost Whether to use the ghost effect, a semitransparent duplicate of the element drawn at an offset.
	Ghost *ComponentStylesGhost `json:"ghost,omitempty" yaml:"ghost,omitempty"`

	// Height The height of the node's body
	Height *float32 `json:"height,omitempty" yaml:"height,omitempty"`

	// Label The text to display for an element's label. Can give a path, e.g. data(id) will label with the elements id
	Label *string `json:"label,omitempty" yaml:"label,omitempty"`

	// MenuBackgroundColor The colour of the background of the component menu. Colours may be specified by name (e.g. red), hex (e.g.
	MenuBackgroundColor *string `json:"menu-background-color,omitempty" yaml:"menu-background-color,omitempty"`

	// MenuBackgroundOpacity The opacity of the background of the component menu.
	MenuBackgroundOpacity *float32 `json:"menu-background-opacity,omitempty" yaml:"menu-background-opacity,omitempty"`

	// MenuForgroundColor The colour of the text or icons in the component menu. Colours may be specified by name (e.g. red), hex (e.g.
	MenuForgroundColor *string `json:"menu-forground-color,omitempty" yaml:"menu-forground-color,omitempty"`

	// Opacity The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.
	Opacity *float32 `json:"opacity,omitempty" yaml:"opacity,omitempty"`

	// OutsideTextureBgColor The colour of the area outside the viewport texture when initOptions.textureOnViewport === true. Selector needs to be *core*. Colours may be specified by name (e.g. red), hex (e.g.
	OutsideTextureBgColor *string `json:"outside-texture-bg-color,omitempty" yaml:"outside-texture-bg-color,omitempty"`

	// OutsideTextureBgOpacity The opacity of the area outside the viewport texture. Selector needs to be *core*
	OutsideTextureBgOpacity *float32 `json:"outside-texture-bg-opacity,omitempty" yaml:"outside-texture-bg-opacity,omitempty"`

	// Padding The amount of padding around all sides of the node.
	Padding *float32 `json:"padding,omitempty" yaml:"padding,omitempty"`

	// Position The position of the node. If the position is set, the node is drawn at that position in the given dimensions. If the position is not set, the node is drawn at a random position.
	Position *struct {
		// X The x-coordinate of the node.
		X float64 `json:"x" yaml:"x"`

		// Y The y-coordinate of the node.
		Y float64 `json:"y" yaml:"y"`
	} `json:"position,omitempty" yaml:"position,omitempty"`

	// PrimaryColor Primary color of the component used for UI representation.
	PrimaryColor string `json:"primaryColor" yaml:"primaryColor"`

	// SecondaryColor Secondary color of the entity used for UI representation.
	SecondaryColor *string `json:"secondaryColor,omitempty" yaml:"secondaryColor,omitempty"`

	// SelectionBoxBorderWidth The size of the border on the selection box. Selector needs to be *core*
	SelectionBoxBorderWidth *float32 `json:"selection-box-border-width,omitempty" yaml:"selection-box-border-width,omitempty"`

	// SelectionBoxColor The background colour of the selection box used for drag selection. Selector needs to be *core*. Colours may be specified by name (e.g. red), hex (e.g.
	SelectionBoxColor *string `json:"selection-box-color,omitempty" yaml:"selection-box-color,omitempty"`

	// SelectionBoxOpacity The opacity of the selection box. Selector needs to be *core*
	SelectionBoxOpacity *float32 `json:"selection-box-opacity,omitempty" yaml:"selection-box-opacity,omitempty"`

	// Shape The shape of the node's body. Note that each shape fits within the specified width and height, and so you may have to adjust width and height if you desire an equilateral shape (i.e. width !== height for several equilateral shapes)
	Shape *Shape `json:"shape,omitempty" yaml:"shape,omitempty"`

	// ShapePolygonPoints An array (or a space-separated string) of numbers ranging on [-1, 1], representing alternating x and y values (i.e. x1 y1 x2 y2, x3 y3 ...). This represents the points in the polygon for the node's shape. The bounding box of the node is given by (-1, -1), (1, -1), (1, 1), (-1, 1). The node's position is the origin (0, 0 )
	ShapePolygonPoints *string `json:"shape-polygon-points,omitempty" yaml:"shape-polygon-points,omitempty"`

	// SvgColor Colored SVG of the entity used for UI representation on light background.
	SvgColor string `json:"svgColor" yaml:"svgColor"`

	// SvgComplete Complete SVG of the entity used for UI representation, often inclusive of background.
	SvgComplete string `json:"svgComplete" yaml:"svgComplete"`

	// SvgWhite White SVG of the entity used for UI representation on dark background.
	SvgWhite string `json:"svgWhite" yaml:"svgWhite"`

	// TextHalign The horizontal alignment of a node's label
	TextHalign *ComponentStylesTextHalign `json:"text-halign,omitempty" yaml:"text-halign,omitempty"`

	// TextOpacity The opacity of the label text, including its outline.
	TextOpacity *float32 `json:"text-opacity,omitempty" yaml:"text-opacity,omitempty"`

	// TextTransform A transformation to apply to the label text
	TextTransform *ComponentStylesTextTransform `json:"text-transform,omitempty" yaml:"text-transform,omitempty"`

	// TextValign The vertical alignment of a node's label
	TextValign *ComponentStylesTextValign `json:"text-valign,omitempty" yaml:"text-valign,omitempty"`

	// Width The width of the node's body or the width of an edge's line.
	Width *float32 `json:"width,omitempty" yaml:"width,omitempty"`

	// ZIndex An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index.
	ZIndex               *int                   `json:"z-index,omitempty" yaml:"z-index,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-" yaml:"-"`
}

ComponentStyles defines model for componentStyles.

func (ComponentStyles) Get added in v1.0.0

func (a ComponentStyles) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ComponentStyles. Returns the specified element and whether it was found

func (ComponentStyles) MarshalJSON added in v1.0.0

func (a ComponentStyles) MarshalJSON() ([]byte, error)

Override default JSON handling for ComponentStyles to handle AdditionalProperties

func (*ComponentStyles) Set added in v1.0.0

func (a *ComponentStyles) Set(fieldName string, value interface{})

Setter for additional properties for ComponentStyles

func (*ComponentStyles) UnmarshalJSON added in v1.0.0

func (a *ComponentStyles) UnmarshalJSON(b []byte) error

Override default JSON handling for ComponentStyles to handle AdditionalProperties

type ComponentStylesBorderStyle added in v1.0.0

type ComponentStylesBorderStyle string

ComponentStylesBorderStyle The style of the node's border

const (
	ComponentStylesBorderStyleDashed ComponentStylesBorderStyle = "dashed"
	ComponentStylesBorderStyleDotted ComponentStylesBorderStyle = "dotted"
	ComponentStylesBorderStyleDouble ComponentStylesBorderStyle = "double"
	ComponentStylesBorderStyleSolid  ComponentStylesBorderStyle = "solid"
)

Defines values for ComponentStylesBorderStyle.

type ComponentStylesGhost added in v1.0.0

type ComponentStylesGhost string

ComponentStylesGhost Whether to use the ghost effect, a semitransparent duplicate of the element drawn at an offset.

const (
	No  ComponentStylesGhost = "no"
	Yes ComponentStylesGhost = "yes"
)

Defines values for ComponentStylesGhost.

type ComponentStylesTextHalign added in v1.0.0

type ComponentStylesTextHalign string

ComponentStylesTextHalign The horizontal alignment of a node's label

const (
	ComponentStylesTextHalignCenter ComponentStylesTextHalign = "center"
	ComponentStylesTextHalignLeft   ComponentStylesTextHalign = "left"
	ComponentStylesTextHalignRight  ComponentStylesTextHalign = "right"
)

Defines values for ComponentStylesTextHalign.

type ComponentStylesTextTransform added in v1.0.0

type ComponentStylesTextTransform string

ComponentStylesTextTransform A transformation to apply to the label text

const (
	ComponentStylesTextTransformLowercase ComponentStylesTextTransform = "lowercase"
	ComponentStylesTextTransformNone      ComponentStylesTextTransform = "none"
	ComponentStylesTextTransformUppercase ComponentStylesTextTransform = "uppercase"
)

Defines values for ComponentStylesTextTransform.

type ComponentStylesTextValign added in v1.0.0

type ComponentStylesTextValign string

ComponentStylesTextValign The vertical alignment of a node's label

const (
	ComponentStylesTextValignBottom ComponentStylesTextValign = "bottom"
	ComponentStylesTextValignCenter ComponentStylesTextValign = "center"
	ComponentStylesTextValignTop    ComponentStylesTextValign = "top"
)

Defines values for ComponentStylesTextValign.

type ContentTechnology added in v1.0.0

type ContentTechnology = string

ContentTechnology defines model for contentTechnology.

type ContentType added in v1.0.0

type ContentType = string

ContentType defines model for contentType.

type CreatedAt

type CreatedAt = time.Time

CreatedAt Timestamp when the resource was created.

type CredentialID

type CredentialID = uuid.UUID

CredentialID defines model for credential_uuid.

type Cumulative added in v0.7.11

type Cumulative = string

Cumulative defines model for cumulative.

type DeletedAt

type DeletedAt = NullTime

DeletedAt Timestamp when the resource was deleted.

type DesignId added in v0.7.14

type DesignId = Uuid

Compatibility aliases for generated packages that still reference historical core type names.

type EdgeStyles added in v1.0.0

type EdgeStyles struct {
	// Animation The animation to apply to the element. example ripple,bounce,etc
	Animation *map[string]interface{} `json:"animation,omitempty" yaml:"animation,omitempty"`

	// ArrowScale Scaling for the arrow size.
	ArrowScale *float32 `json:"arrow-scale,omitempty" yaml:"arrow-scale,omitempty"`

	// Color The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g.
	Color *string `json:"color,omitempty" yaml:"color,omitempty"`

	// CurveStyle The curving method used to separate two or more edges between two nodes; may be haystack (very fast, bundled straight edges for which loops and compounds are unsupported), straight (straight edges with all arrows supported), bezier (bundled curved edges), unbundled-bezier (curved edges for use with manual control points), segments (a series of straight lines), taxi (right-angled lines, hierarchically bundled). Note that haystack edges work best with ellipse, rectangle, or similar nodes. Smaller node shapes, like triangle, will not be as aesthetically pleasing. Also note that edge endpoint arrows are unsupported for haystack edges.
	CurveStyle *EdgeStylesCurveStyle `json:"curve-style,omitempty" yaml:"curve-style,omitempty"`

	// EdgeAnimation The animation to use for the edge. Can be like 'marching-ants' , 'blink' , 'moving-gradient',etc .
	EdgeAnimation *string `json:"edge-animation,omitempty" yaml:"edge-animation,omitempty"`

	// FontFamily A comma-separated list of font names to use on the label text.
	FontFamily *string `json:"font-family,omitempty" yaml:"font-family,omitempty"`

	// FontSize The size of the label text.
	FontSize *string `json:"font-size,omitempty" yaml:"font-size,omitempty"`

	// FontStyle A CSS font style to be applied to the label text.
	FontStyle *string `json:"font-style,omitempty" yaml:"font-style,omitempty"`

	// FontWeight A CSS font weight to be applied to the label text.
	FontWeight *string `json:"font-weight,omitempty" yaml:"font-weight,omitempty"`

	// Label The text to display for an element's label. Can give a path, e.g. data(id) will label with the elements id
	Label *string `json:"label,omitempty" yaml:"label,omitempty"`

	// LineCap The cap style of the edge's line; may be butt (default), round, or square. The cap may or may not be visible, depending on the shape of the node and the relative size of the node and edge. Caps other than butt extend beyond the specified endpoint of the edge.
	LineCap *EdgeStylesLineCap `json:"line-cap,omitempty" yaml:"line-cap,omitempty"`

	// LineColor The colour of the edge's line. Colours may be specified by name (e.g. red), hex (e.g.
	LineColor *string `json:"line-color,omitempty" yaml:"line-color,omitempty"`

	// LineOpacity The opacity of the edge's line and arrow. Useful if you wish to have a separate opacity for the edge label versus the edge line. Note that the opacity value of the edge element affects the effective opacity of its line and label subcomponents.
	LineOpacity *float32 `json:"line-opacity,omitempty" yaml:"line-opacity,omitempty"`

	// LineStyle The style of the edge's line.
	LineStyle *EdgeStylesLineStyle `json:"line-style,omitempty" yaml:"line-style,omitempty"`

	// MidTargetArrowColor The colour of the edge's source arrow. Colours may be specified by name (e.g. red), hex (e.g.
	MidTargetArrowColor *string `json:"mid-target-arrow-color,omitempty" yaml:"mid-target-arrow-color,omitempty"`

	// MidTargetArrowFill The fill state of the edge's source arrow
	MidTargetArrowFill *EdgeStylesMidTargetArrowFill `json:"mid-target-arrow-fill,omitempty" yaml:"mid-target-arrow-fill,omitempty"`

	// MidTargetArrowShape The shape of the edge's source arrow
	MidTargetArrowShape *EdgeStylesMidTargetArrowShape `json:"mid-target-arrow-shape,omitempty" yaml:"mid-target-arrow-shape,omitempty"`

	// Opacity The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.
	Opacity *float32 `json:"opacity,omitempty" yaml:"opacity,omitempty"`

	// PrimaryColor Primary color of the component used for UI representation.
	PrimaryColor string `json:"primaryColor" yaml:"primaryColor"`

	// SecondaryColor Secondary color of the entity used for UI representation.
	SecondaryColor *string `json:"secondaryColor,omitempty" yaml:"secondaryColor,omitempty"`

	// SourceLabel The text to display for an edge's source label. Can give a path, e.g. data(id) will label with the elements id
	SourceLabel *string `json:"source-label,omitempty" yaml:"source-label,omitempty"`

	// SvgColor Colored SVG of the entity used for UI representation on light background.
	SvgColor string `json:"svgColor" yaml:"svgColor"`

	// SvgComplete Complete SVG of the entity used for UI representation, often inclusive of background.
	SvgComplete string `json:"svgComplete" yaml:"svgComplete"`

	// SvgWhite White SVG of the entity used for UI representation on dark background.
	SvgWhite string `json:"svgWhite" yaml:"svgWhite"`

	// TargetArrowColor The colour of the edge's source arrow. Colours may be specified by name (e.g. red), hex (e.g.
	TargetArrowColor *string `json:"target-arrow-color,omitempty" yaml:"target-arrow-color,omitempty"`

	// TargetArrowFill The fill state of the edge's source arrow
	TargetArrowFill *EdgeStylesTargetArrowFill `json:"target-arrow-fill,omitempty" yaml:"target-arrow-fill,omitempty"`

	// TargetArrowShape The shape of the edge's source arrow
	TargetArrowShape *EdgeStylesTargetArrowShape `json:"target-arrow-shape,omitempty" yaml:"target-arrow-shape,omitempty"`

	// TargetLabel The text to display for an edge's target label. Can give a path, e.g. data(id) will label with the elements id
	TargetLabel *string `json:"target-label,omitempty" yaml:"target-label,omitempty"`

	// TextOpacity The opacity of the label text, including its outline.
	TextOpacity *float32 `json:"text-opacity,omitempty" yaml:"text-opacity,omitempty"`

	// TextTransform A transformation to apply to the label text
	TextTransform *EdgeStylesTextTransform `json:"text-transform,omitempty" yaml:"text-transform,omitempty"`

	// ZIndex An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index.
	ZIndex               *int                   `json:"z-index,omitempty" yaml:"z-index,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-" yaml:"-"`
}

EdgeStyles defines model for edgeStyles.

func (EdgeStyles) Get added in v1.0.0

func (a EdgeStyles) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for EdgeStyles. Returns the specified element and whether it was found

func (EdgeStyles) MarshalJSON added in v1.0.0

func (a EdgeStyles) MarshalJSON() ([]byte, error)

Override default JSON handling for EdgeStyles to handle AdditionalProperties

func (*EdgeStyles) Set added in v1.0.0

func (a *EdgeStyles) Set(fieldName string, value interface{})

Setter for additional properties for EdgeStyles

func (*EdgeStyles) UnmarshalJSON added in v1.0.0

func (a *EdgeStyles) UnmarshalJSON(b []byte) error

Override default JSON handling for EdgeStyles to handle AdditionalProperties

type EdgeStylesCurveStyle added in v1.0.0

type EdgeStylesCurveStyle string

EdgeStylesCurveStyle The curving method used to separate two or more edges between two nodes; may be haystack (very fast, bundled straight edges for which loops and compounds are unsupported), straight (straight edges with all arrows supported), bezier (bundled curved edges), unbundled-bezier (curved edges for use with manual control points), segments (a series of straight lines), taxi (right-angled lines, hierarchically bundled). Note that haystack edges work best with ellipse, rectangle, or similar nodes. Smaller node shapes, like triangle, will not be as aesthetically pleasing. Also note that edge endpoint arrows are unsupported for haystack edges.

const (
	Bezier          EdgeStylesCurveStyle = "bezier"
	Haystack        EdgeStylesCurveStyle = "haystack"
	Segments        EdgeStylesCurveStyle = "segments"
	Straight        EdgeStylesCurveStyle = "straight"
	Taxi            EdgeStylesCurveStyle = "taxi"
	UnbundledBezier EdgeStylesCurveStyle = "unbundled-bezier"
)

Defines values for EdgeStylesCurveStyle.

type EdgeStylesLineCap added in v1.0.0

type EdgeStylesLineCap string

EdgeStylesLineCap The cap style of the edge's line; may be butt (default), round, or square. The cap may or may not be visible, depending on the shape of the node and the relative size of the node and edge. Caps other than butt extend beyond the specified endpoint of the edge.

const (
	EdgeStylesLineCapButt   EdgeStylesLineCap = "butt"
	EdgeStylesLineCapRound  EdgeStylesLineCap = "round"
	EdgeStylesLineCapSquare EdgeStylesLineCap = "square"
)

Defines values for EdgeStylesLineCap.

type EdgeStylesLineStyle added in v1.0.0

type EdgeStylesLineStyle string

EdgeStylesLineStyle The style of the edge's line.

const (
	EdgeStylesLineStyleDashed EdgeStylesLineStyle = "dashed"
	EdgeStylesLineStyleDotted EdgeStylesLineStyle = "dotted"
	EdgeStylesLineStyleSolid  EdgeStylesLineStyle = "solid"
)

Defines values for EdgeStylesLineStyle.

type EdgeStylesMidTargetArrowFill added in v1.0.0

type EdgeStylesMidTargetArrowFill string

EdgeStylesMidTargetArrowFill The fill state of the edge's source arrow

const (
	EdgeStylesMidTargetArrowFillFilled EdgeStylesMidTargetArrowFill = "filled"
	EdgeStylesMidTargetArrowFillHollow EdgeStylesMidTargetArrowFill = "hollow"
)

Defines values for EdgeStylesMidTargetArrowFill.

type EdgeStylesMidTargetArrowShape added in v1.0.0

type EdgeStylesMidTargetArrowShape string

EdgeStylesMidTargetArrowShape The shape of the edge's source arrow

const (
	EdgeStylesMidTargetArrowShapeChevron           EdgeStylesMidTargetArrowShape = "chevron"
	EdgeStylesMidTargetArrowShapeCircle            EdgeStylesMidTargetArrowShape = "circle"
	EdgeStylesMidTargetArrowShapeCircleTriangle    EdgeStylesMidTargetArrowShape = "circle-triangle"
	EdgeStylesMidTargetArrowShapeDiamond           EdgeStylesMidTargetArrowShape = "diamond"
	EdgeStylesMidTargetArrowShapeNone              EdgeStylesMidTargetArrowShape = "none"
	EdgeStylesMidTargetArrowShapeSquare            EdgeStylesMidTargetArrowShape = "square"
	EdgeStylesMidTargetArrowShapeTee               EdgeStylesMidTargetArrowShape = "tee"
	EdgeStylesMidTargetArrowShapeTriangle          EdgeStylesMidTargetArrowShape = "triangle"
	EdgeStylesMidTargetArrowShapeTriangleBackcurve EdgeStylesMidTargetArrowShape = "triangle-backcurve"
	EdgeStylesMidTargetArrowShapeTriangleCross     EdgeStylesMidTargetArrowShape = "triangle-cross"
	EdgeStylesMidTargetArrowShapeTriangleTee       EdgeStylesMidTargetArrowShape = "triangle-tee"
	EdgeStylesMidTargetArrowShapeVee               EdgeStylesMidTargetArrowShape = "vee"
)

Defines values for EdgeStylesMidTargetArrowShape.

type EdgeStylesTargetArrowFill added in v1.0.0

type EdgeStylesTargetArrowFill string

EdgeStylesTargetArrowFill The fill state of the edge's source arrow

const (
	EdgeStylesTargetArrowFillFilled EdgeStylesTargetArrowFill = "filled"
	EdgeStylesTargetArrowFillHollow EdgeStylesTargetArrowFill = "hollow"
)

Defines values for EdgeStylesTargetArrowFill.

type EdgeStylesTargetArrowShape added in v1.0.0

type EdgeStylesTargetArrowShape string

EdgeStylesTargetArrowShape The shape of the edge's source arrow

const (
	EdgeStylesTargetArrowShapeChevron           EdgeStylesTargetArrowShape = "chevron"
	EdgeStylesTargetArrowShapeCircle            EdgeStylesTargetArrowShape = "circle"
	EdgeStylesTargetArrowShapeCircleTriangle    EdgeStylesTargetArrowShape = "circle-triangle"
	EdgeStylesTargetArrowShapeDiamond           EdgeStylesTargetArrowShape = "diamond"
	EdgeStylesTargetArrowShapeNone              EdgeStylesTargetArrowShape = "none"
	EdgeStylesTargetArrowShapeSquare            EdgeStylesTargetArrowShape = "square"
	EdgeStylesTargetArrowShapeTee               EdgeStylesTargetArrowShape = "tee"
	EdgeStylesTargetArrowShapeTriangle          EdgeStylesTargetArrowShape = "triangle"
	EdgeStylesTargetArrowShapeTriangleBackcurve EdgeStylesTargetArrowShape = "triangle-backcurve"
	EdgeStylesTargetArrowShapeTriangleCross     EdgeStylesTargetArrowShape = "triangle-cross"
	EdgeStylesTargetArrowShapeTriangleTee       EdgeStylesTargetArrowShape = "triangle-tee"
	EdgeStylesTargetArrowShapeVee               EdgeStylesTargetArrowShape = "vee"
)

Defines values for EdgeStylesTargetArrowShape.

type EdgeStylesTextTransform added in v1.0.0

type EdgeStylesTextTransform string

EdgeStylesTextTransform A transformation to apply to the label text

const (
	EdgeStylesTextTransformLowercase EdgeStylesTextTransform = "lowercase"
	EdgeStylesTextTransformNone      EdgeStylesTextTransform = "none"
	EdgeStylesTextTransformUppercase EdgeStylesTextTransform = "uppercase"
)

Defines values for EdgeStylesTextTransform.

type Email

type Email = openapi_types.Email

Email email

type EmailPreference

type EmailPreference struct {
	NotifyRoleChange bool `json:"notify_role_change,omitempty" yaml:"notify_role_change,omitempty"`
	WelcomeEmail     bool `json:"welcome_email,omitempty" yaml:"welcome_email,omitempty"`
}

EmailPreference defines model for email_preference.

type Emails

type Emails = []Email

Emails defines model for emails.

type Empty

type Empty = map[string]interface{}

Empty Body for empty request

type Endpoint

type Endpoint = Text

Endpoint defines model for Endpoint.

type EnvironmentId added in v0.7.11

type EnvironmentId = uuid.UUID

EnvironmentId defines model for environment_id.

type Filter added in v0.7.11

type Filter = string

Filter defines model for filter.

type GeneralId added in v0.7.14

type GeneralId = uuid.UUID

GeneralId defines model for general_id.

type IaCFileTypes added in v1.0.0

type IaCFileTypes string

IaCFileTypes The type of the IaC file

const (
	DockerCompose IaCFileTypes = "docker-compose"
	HelmChart     IaCFileTypes = "helm-chart"
	K8sKustomize  IaCFileTypes = "k8s-kustomize"
	K8sManifest   IaCFileTypes = "k8s-manifest"
	MesheryDesign IaCFileTypes = "meshery-design"
)

Defines values for IaCFileTypes.

type Id added in v0.7.11

type Id = uuid.UUID

Id defines model for Id. Id defines model for id.

type InputString added in v1.0.0

type InputString = string

InputString A string starting with an alphanumeric character. Spaces and hyphens allowed.

type IsOAuth added in v0.7.11

type IsOAuth = string

IsOAuth defines model for isOAuth.

type KubernetesServerID

type KubernetesServerID = uuid.UUID

KubernetesServerID defines model for kubernetes_server_uuid.

type Map added in v0.8.27

type Map map[string]any

Map is a map[string]interface.

func (*Map) Scan added in v0.8.27

func (m *Map) Scan(src interface{}) error

Scan implements the sql.Scanner interface. It allows to read the map from the database value.

func (*Map) UnmarshalJSON added in v0.8.27

func (m *Map) UnmarshalJSON(b []byte) error

UnmarshalJSON will unmarshall JSON value into the map representation of this value.

func (Map) Value added in v0.8.27

func (m Map) Value() (driver.Value, error)

Value implements the driver.Valuer interface. It allows to convert the map to a driver.value.

type MapObject

type MapObject map[string]string

MapObject defines model for MapObject.

func (MapObject) GormDataType added in v0.8.135

func (m MapObject) GormDataType() string

GormDataType returns the data type for GORM to use when creating the database column.

func (*MapObject) Scan added in v0.8.135

func (m *MapObject) Scan(value interface{}) error

Scan implements the sql.Scanner interface, deserializing a JSON string into MapObject.

func (MapObject) Value added in v0.8.135

func (m MapObject) Value() (driver.Value, error)

Value implements the driver.Valuer interface, serializing MapObject as a JSON string.

type MesheryInstanceID

type MesheryInstanceID = uuid.UUID

MesheryInstanceID defines model for meshery_instance_uuid.

type MesheryVersion added in v0.7.11

type MesheryVersion = string

MesheryVersion defines model for mesheryVersion.

type Metrics added in v1.0.0

type Metrics = string

Metrics defines model for metrics.

type Name added in v0.7.11

type Name = string

Name defines model for name.

type Namespace added in v0.7.11

type Namespace = string

Namespace defines model for namespace.

type NonResolvedAlias added in v1.0.0

type NonResolvedAlias struct {
	// AliasComponentId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	AliasComponentId Uuid `json:"alias_component_id" yaml:"alias_component_id"`

	// ImmediateParentId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	ImmediateParentId     Uuid     `json:"immediate_parent_id" yaml:"immediate_parent_id"`
	ImmediateRefFieldPath []string `json:"immediate_ref_field_path" yaml:"immediate_ref_field_path"`

	// RelationshipId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	RelationshipId Uuid `json:"relationship_id" yaml:"relationship_id"`
}

NonResolvedAlias An alias is an component that acts as an ref/pointer to a field in another component, nonResolvedAlias are not aware of there immediate parents

type NullTime

type NullTime struct {
	Time  time.Time
	Valid bool // Valid is true if NullTime is not NULL
}

NullTime replaces sql.NullTime with an implementation that supports proper JSON encoding/decoding.

func NewTime added in v0.8.27

func NewTime(t time.Time) NullTime

NewTime returns a new, properly instantiated NullTime object.

func (NullTime) MarshalJSON added in v0.8.27

func (nt NullTime) MarshalJSON() ([]byte, error)

MarshalJSON marshals the underlying value to a proper JSON representation.

func (NullTime) MarshalYAML added in v0.8.28

func (nt NullTime) MarshalYAML() (any, error)

func (*NullTime) Scan added in v0.8.27

func (nt *NullTime) Scan(value any) error

Scan implements the Scanner interface.

func (*NullTime) UnmarshalJSON added in v0.8.27

func (nt *NullTime) UnmarshalJSON(text []byte) error

UnmarshalJSON will unmarshal a JSON value into the propert representation of that value. -- This NullTime implementation supports unmarshaling from both: - A JSON time string (e.g., "2023-07-05T15:04:05Z") - A JSON object (e.g., {"Time":"0001-01-01T00:00:00Z","Valid":false}) - A JSON null value

we need support for JSON object as provider is using sql.NullTime now for DeletedAt field which is marshaled to json as such object and is returned from api

func (*NullTime) UnmarshalYAML added in v0.8.28

func (nt *NullTime) UnmarshalYAML(value *yaml.Node) error

func (NullTime) Value added in v0.8.27

func (nt NullTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Number added in v0.7.11

type Number = int

NullTime SQL null Timestamp to handle null values of time. type NullTime — defined in manual helper file Number defines model for number.

type OperationID

type OperationID = uuid.UUID

OperationID defines model for operation_id.

type Order added in v0.7.11

type Order = string

Order defines model for order.

type OrganizationId added in v0.7.11

type OrganizationId = uuid.UUID

OrganizationId defines model for organization_id.

type Os added in v0.7.11

type Os = string

Os defines model for os.

type Page added in v0.7.11

type Page = string

Page defines model for page.

type Pagesize added in v1.0.0

type Pagesize = string

Pagesize defines model for pagesize.

type Playground added in v0.7.11

type Playground = string

Playground defines model for playground.

type Populate added in v1.0.0

type Populate = string

Populate defines model for populate.

type Price

type Price = int32

Price defines model for price.

type Provider

type Provider = string

Provider One of (x-oapi-codegen-extra-tags-cloud, github, google)

type Purpose added in v0.7.11

type Purpose = string

Purpose defines model for purpose.

type RecordsPage

type RecordsPage struct {
	Page         int    `json:"page,omitempty" yaml:"page,omitempty"`
	PageSize     int    `json:"page_size,omitempty" yaml:"page_size,omitempty"`
	RecordType   string `json:"recordType,omitempty" yaml:"recordType,omitempty"`
	RecordsTotal int    `json:"records_total,omitempty" yaml:"records_total,omitempty"`
}

RecordsPage defines model for recordsPage.

type RelationshipStyles added in v1.0.0

type RelationshipStyles struct {
	// contains filtered or unexported fields
}

RelationshipStyles defines model for relationshipStyles.

func (RelationshipStyles) AsEdgeStyles added in v1.0.0

func (t RelationshipStyles) AsEdgeStyles() (EdgeStyles, error)

AsEdgeStyles returns the union data inside the RelationshipStyles as a EdgeStyles

func (RelationshipStyles) AsRelationshipStyles1 added in v1.0.0

func (t RelationshipStyles) AsRelationshipStyles1() (RelationshipStyles1, error)

AsRelationshipStyles1 returns the union data inside the RelationshipStyles as a RelationshipStyles1

func (*RelationshipStyles) FromEdgeStyles added in v1.0.0

func (t *RelationshipStyles) FromEdgeStyles(v EdgeStyles) error

FromEdgeStyles overwrites any union data inside the RelationshipStyles as the provided EdgeStyles

func (*RelationshipStyles) FromRelationshipStyles1 added in v1.0.0

func (t *RelationshipStyles) FromRelationshipStyles1(v RelationshipStyles1) error

FromRelationshipStyles1 overwrites any union data inside the RelationshipStyles as the provided RelationshipStyles1

func (RelationshipStyles) MarshalJSON added in v1.0.0

func (t RelationshipStyles) MarshalJSON() ([]byte, error)

func (*RelationshipStyles) MergeEdgeStyles added in v1.0.0

func (t *RelationshipStyles) MergeEdgeStyles(v EdgeStyles) error

MergeEdgeStyles performs a merge with any union data inside the RelationshipStyles, using the provided EdgeStyles

func (*RelationshipStyles) MergeRelationshipStyles1 added in v1.0.0

func (t *RelationshipStyles) MergeRelationshipStyles1(v RelationshipStyles1) error

MergeRelationshipStyles1 performs a merge with any union data inside the RelationshipStyles, using the provided RelationshipStyles1

func (*RelationshipStyles) UnmarshalJSON added in v1.0.0

func (t *RelationshipStyles) UnmarshalJSON(b []byte) error

type RelationshipStyles1 added in v1.0.0

type RelationshipStyles1 struct {
	// Animation The animation to apply to the element. example ripple,bounce,etc
	Animation *map[string]interface{} `json:"animation,omitempty" yaml:"animation,omitempty"`

	// Color The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g.
	Color *string `json:"color,omitempty" yaml:"color,omitempty"`

	// FontFamily A comma-separated list of font names to use on the label text.
	FontFamily *string `json:"font-family,omitempty" yaml:"font-family,omitempty"`

	// FontSize The size of the label text.
	FontSize *string `json:"font-size,omitempty" yaml:"font-size,omitempty"`

	// FontStyle A CSS font style to be applied to the label text.
	FontStyle *string `json:"font-style,omitempty" yaml:"font-style,omitempty"`

	// FontWeight A CSS font weight to be applied to the label text.
	FontWeight *string `json:"font-weight,omitempty" yaml:"font-weight,omitempty"`

	// Label The text to display for an element's label. Can give a path, e.g. data(id) will label with the elements id
	Label *string `json:"label,omitempty" yaml:"label,omitempty"`

	// Opacity The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.
	Opacity *float32 `json:"opacity,omitempty" yaml:"opacity,omitempty"`

	// PrimaryColor Primary color of the component used for UI representation.
	PrimaryColor string `json:"primaryColor" yaml:"primaryColor"`

	// SecondaryColor Secondary color of the entity used for UI representation.
	SecondaryColor *string `json:"secondaryColor,omitempty" yaml:"secondaryColor,omitempty"`

	// SvgColor Colored SVG of the entity used for UI representation on light background.
	SvgColor string `json:"svgColor" yaml:"svgColor"`

	// SvgComplete Complete SVG of the entity used for UI representation, often inclusive of background.
	SvgComplete string `json:"svgComplete" yaml:"svgComplete"`

	// SvgWhite White SVG of the entity used for UI representation on dark background.
	SvgWhite string `json:"svgWhite" yaml:"svgWhite"`

	// TextOpacity The opacity of the label text, including its outline.
	TextOpacity *float32 `json:"text-opacity,omitempty" yaml:"text-opacity,omitempty"`

	// TextTransform A transformation to apply to the label text
	TextTransform *RelationshipStyles1TextTransform `json:"text-transform,omitempty" yaml:"text-transform,omitempty"`

	// ZIndex An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index.
	ZIndex               *int                   `json:"z-index,omitempty" yaml:"z-index,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-" yaml:"-"`
}

RelationshipStyles1 defines model for .

func (RelationshipStyles1) Get added in v1.0.0

func (a RelationshipStyles1) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for RelationshipStyles1. Returns the specified element and whether it was found

func (RelationshipStyles1) MarshalJSON added in v1.0.0

func (a RelationshipStyles1) MarshalJSON() ([]byte, error)

Override default JSON handling for RelationshipStyles1 to handle AdditionalProperties

func (*RelationshipStyles1) Set added in v1.0.0

func (a *RelationshipStyles1) Set(fieldName string, value interface{})

Setter for additional properties for RelationshipStyles1

func (*RelationshipStyles1) UnmarshalJSON added in v1.0.0

func (a *RelationshipStyles1) UnmarshalJSON(b []byte) error

Override default JSON handling for RelationshipStyles1 to handle AdditionalProperties

type RelationshipStyles1TextTransform added in v1.0.0

type RelationshipStyles1TextTransform string

RelationshipStyles1TextTransform A transformation to apply to the label text

const (
	RelationshipStyles1TextTransformLowercase RelationshipStyles1TextTransform = "lowercase"
	RelationshipStyles1TextTransformNone      RelationshipStyles1TextTransform = "none"
	RelationshipStyles1TextTransformUppercase RelationshipStyles1TextTransform = "uppercase"
)

Defines values for RelationshipStyles1TextTransform.

type ResolvedAlias added in v1.0.0

type ResolvedAlias struct {
	// AliasComponentId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	AliasComponentId Uuid `json:"alias_component_id" yaml:"alias_component_id"`

	// ImmediateParentId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	ImmediateParentId     Uuid     `json:"immediate_parent_id" yaml:"immediate_parent_id"`
	ImmediateRefFieldPath []string `json:"immediate_ref_field_path" yaml:"immediate_ref_field_path"`

	// RelationshipId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	RelationshipId Uuid `json:"relationship_id" yaml:"relationship_id"`

	// ResolvedParentId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	ResolvedParentId     Uuid     `json:"resolved_parent_id" yaml:"resolved_parent_id"`
	ResolvedRefFieldPath []string `json:"resolved_ref_field_path" yaml:"resolved_ref_field_path"`
}

ResolvedAlias defines model for ResolvedAlias.

func ResolvedAliasFromNonResolved added in v1.0.0

func ResolvedAliasFromNonResolved(nonResolved NonResolvedAlias, resolvedParentId uuid.UUID, resolvedField []string) ResolvedAlias

type ResourceType added in v1.0.0

type ResourceType = string

ResourceType defines model for resourceType.

type ResultsPage

type ResultsPage struct {
	Page       int    `json:"page,omitempty" yaml:"page,omitempty"`
	PageSize   int    `json:"page_size,omitempty" yaml:"page_size,omitempty"`
	ResultType string `json:"resultType,omitempty" yaml:"resultType,omitempty"`
	TotalCount int    `json:"total_count,omitempty" yaml:"total_count,omitempty"`
}

ResultsPage defines model for resultsPage.

type RoleNames

type RoleNames = []string

RoleNames defines model for roleNames.

type Search = string

Search defines model for search.

type SemverString added in v1.0.0

type SemverString = string

SemverString A valid semantic version string between 5 and 100 characters. The pattern allows for a major.minor.patch version followed by an optional pre-release tag like '-alpha' or '-beta.2' and an optional build metadata tag like '+build.1'.

type Shape added in v1.0.0

type Shape string

Shape The shape of the node's body. Note that each shape fits within the specified width and height, and so you may have to adjust width and height if you desire an equilateral shape (i.e. width !== height for several equilateral shapes)

const (
	Barrel               Shape = "barrel"
	BottomRoundRectangle Shape = "bottom-round-rectangle"
	ConcaveHexagon       Shape = "concave-hexagon"
	CutRectangle         Shape = "cut-rectangle"
	Diamond              Shape = "diamond"
	Ellipse              Shape = "ellipse"
	Heptagon             Shape = "heptagon"
	Hexagon              Shape = "hexagon"
	Octagon              Shape = "octagon"
	Pentagon             Shape = "pentagon"
	Polygon              Shape = "polygon"
	Rectangle            Shape = "rectangle"
	Rhomboid             Shape = "rhomboid"
	RoundDiamond         Shape = "round-diamond"
	RoundHeptagon        Shape = "round-heptagon"
	RoundHexagon         Shape = "round-hexagon"
	RoundOctagon         Shape = "round-octagon"
	RoundPentagon        Shape = "round-pentagon"
	RoundRectangle       Shape = "round-rectangle"
	RoundTag             Shape = "round-tag"
	RoundTriangle        Shape = "round-triangle"
	Star                 Shape = "star"
	Tag                  Shape = "tag"
	Triangle             Shape = "triangle"
	Vee                  Shape = "vee"
)

Defines values for Shape.

type SqlNullTime added in v1.0.0

type SqlNullTime = sql.NullTime

SqlNullTime defines model for SqlNullTime.

type Status

type Status = string

Status defines model for status.

type Styles added in v1.0.0

type Styles struct {
	// Animation The animation to apply to the element. example ripple,bounce,etc
	Animation *map[string]interface{} `json:"animation,omitempty" yaml:"animation,omitempty"`

	// Color The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g.
	Color *string `json:"color,omitempty" yaml:"color,omitempty"`

	// FontFamily A comma-separated list of font names to use on the label text.
	FontFamily *string `json:"font-family,omitempty" yaml:"font-family,omitempty"`

	// FontSize The size of the label text.
	FontSize *string `json:"font-size,omitempty" yaml:"font-size,omitempty"`

	// FontStyle A CSS font style to be applied to the label text.
	FontStyle *string `json:"font-style,omitempty" yaml:"font-style,omitempty"`

	// FontWeight A CSS font weight to be applied to the label text.
	FontWeight *string `json:"font-weight,omitempty" yaml:"font-weight,omitempty"`

	// Label The text to display for an element's label. Can give a path, e.g. data(id) will label with the elements id
	Label *string `json:"label,omitempty" yaml:"label,omitempty"`

	// Opacity The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.
	Opacity *float32 `json:"opacity,omitempty" yaml:"opacity,omitempty"`

	// PrimaryColor Primary color of the component used for UI representation.
	PrimaryColor string `json:"primaryColor" yaml:"primaryColor"`

	// SecondaryColor Secondary color of the entity used for UI representation.
	SecondaryColor *string `json:"secondaryColor,omitempty" yaml:"secondaryColor,omitempty"`

	// SvgColor Colored SVG of the entity used for UI representation on light background.
	SvgColor string `json:"svgColor" yaml:"svgColor"`

	// SvgComplete Complete SVG of the entity used for UI representation, often inclusive of background.
	SvgComplete string `json:"svgComplete" yaml:"svgComplete"`

	// SvgWhite White SVG of the entity used for UI representation on dark background.
	SvgWhite string `json:"svgWhite" yaml:"svgWhite"`

	// TextOpacity The opacity of the label text, including its outline.
	TextOpacity *float32 `json:"text-opacity,omitempty" yaml:"text-opacity,omitempty"`

	// TextTransform A transformation to apply to the label text
	TextTransform *StylesTextTransform `json:"text-transform,omitempty" yaml:"text-transform,omitempty"`

	// ZIndex An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index.
	ZIndex               *int                   `json:"z-index,omitempty" yaml:"z-index,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-" yaml:"-"`
}

Styles Common styles for all entities

func (Styles) Get added in v1.0.0

func (a Styles) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Styles. Returns the specified element and whether it was found

func (Styles) MarshalJSON added in v1.0.0

func (a Styles) MarshalJSON() ([]byte, error)

Override default JSON handling for Styles to handle AdditionalProperties

func (*Styles) Set added in v1.0.0

func (a *Styles) Set(fieldName string, value interface{})

Setter for additional properties for Styles

func (*Styles) UnmarshalJSON added in v1.0.0

func (a *Styles) UnmarshalJSON(b []byte) error

Override default JSON handling for Styles to handle AdditionalProperties

type StylesTextTransform added in v1.0.0

type StylesTextTransform string

StylesTextTransform A transformation to apply to the label text

const (
	Lowercase StylesTextTransform = "lowercase"
	None      StylesTextTransform = "none"
	Uppercase StylesTextTransform = "uppercase"
)

Defines values for StylesTextTransform.

type SystemID

type SystemID = uuid.UUID

SystemID defines model for system_id.

type SystemId added in v1.0.0

type SystemId = SystemID

type TeamId added in v0.7.14

type TeamId = uuid.UUID

TeamId defines model for team_id.

type Text

type Text = string

Text defines model for Text.

type Time

type Time = time.Time

Time defines model for Time.

type Type added in v0.7.11

type Type = string

Type defines model for type.

type UpdatedAt

type UpdatedAt = time.Time

UpdatedAt Timestamp when the resource was updated.

type UserID

type UserID = uuid.UUID

UserID defines model for user_uuid.

type UserId

type UserId = string

UserId user's email or username

type UserIds

type UserIds = []Id

UserIds defines model for user_ids.

type UserUuid added in v1.0.0

type UserUuid = UserID

type Userid added in v1.0.0

type Userid = string

Userid defines model for userid.

type Username

type Username = string

Username defines model for username.

type Uuid added in v1.0.0

type Uuid = uuid.UUID

Uuid A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.

type VersionString added in v1.0.0

type VersionString = string

VersionString API version of the object, optionally prefixed with an API group (e.g. "group.example.io/v1beta1" or bare "v1beta1").

type ViewId added in v0.7.14

type ViewId = uuid.UUID

ViewId defines model for view_id.

type Visibility added in v1.0.0

type Visibility string

Visibility Visibility level of a resource. Controls who can see and access it. - `private`: Only the owner and explicitly shared users can access. - `public`: Anyone in the organization (or anonymous, depending on resource) can discover and access. - `published`: Promoted to the catalog for broad discovery beyond the owning organization.

const (
	Private   Visibility = "private"
	Public    Visibility = "public"
	Published Visibility = "published"
)

Defines values for Visibility.

type WorkspaceId added in v0.7.14

type WorkspaceId = uuid.UUID

WorkspaceId defines model for workspace_id.

Jump to

Keyboard shortcuts

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