connection

package
v0.7.31 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Overview

The file implements the Entity interface on the Connection struct. This is not autogenerated.

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	CreatedAt time.Time `json:"created_at" yaml:"created_at"`

	// CredentialId Credential ID
	CredentialId uuid.UUID `json:"credential_id" yaml:"credential_id"`
	DeletedAt    time.Time `json:"deleted_at" yaml:"deleted_at"`

	// Id ID
	Id uuid.UUID `json:"id" yaml:"id"`

	// Kind Connection Kind
	Kind     string                 `json:"kind" yaml:"kind"`
	Metadata map[string]interface{} `json:"metadata,omitempty" yaml:"metadata,omitempty" gorm:"type:bytes;serializer:json"`

	// Name Connection Name
	Name string `json:"name" yaml:"name"`

	// Status Connection Status
	Status ConnectionStatus `json:"status" yaml:"status"`

	// SubType Connection Subtype
	SubType string `json:"sub_type" yaml:"sub_type"`

	// Type Connection Type
	Type      string    `json:"type" yaml:"type"`
	UpdatedAt time.Time `json:"updated_at" yaml:"updated_at"`

	// UserID A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.
	UserID uuid.UUID `json:"user_id" yaml:"user_id"`
}

Connection Meshery Connections are managed and unmanaged resources that either through discovery or manual entry are tracked by Meshery. Learn more at https://docs.meshery.io/concepts/logical/connections

func (*Connection) Create

func (h *Connection) Create(db *database.Handler) (uuid.UUID, error)

func (*Connection) GenerateID

func (h *Connection) GenerateID() (uuid.UUID, error)

type ConnectionId

type ConnectionId = externalRef2.Id

ConnectionId defines model for connectionId.

type ConnectionKind

type ConnectionKind = externalRef2.Text

ConnectionKind defines model for connectionKind.

type ConnectionPage

type ConnectionPage struct {
	Connections []Connection `json:"connections,omitempty"`
	Page        int          `json:"page,omitempty"`
	PageSize    int          `json:"page_size,omitempty"`
	ResultType  string       `json:"resultType,omitempty"`
	TotalCount  int          `json:"total_count,omitempty"`
}

ConnectionPage defines model for connectionPage.

type ConnectionPayload

type ConnectionPayload struct {
	CredentialSecret externalRef2.MapObject `json:"credential_secret,omitempty"`
	Kind             externalRef2.Text      `json:"kind,omitempty"`
	Metadata         externalRef2.MapObject `json:"metadata,omitempty"`
	SubType          externalRef2.Text      `json:"sub_type,omitempty"`
	Type             externalRef2.Text      `json:"type,omitempty"`
}

ConnectionPayload defines model for connectionPayload.

type ConnectionStatus

type ConnectionStatus string

ConnectionStatus Connection Status

const (
	Connected    ConnectionStatus = "connected"
	Deleted      ConnectionStatus = "deleted"
	Disconnected ConnectionStatus = "disconnected"
	Discovered   ConnectionStatus = "discovered"
	Ignored      ConnectionStatus = "ignored"
	Maintenance  ConnectionStatus = "maintenance"
	NotFound     ConnectionStatus = "not found"
	Registered   ConnectionStatus = "registered"
)

Defines values for ConnectionStatus.

type ConnectionStatusInfo

type ConnectionStatusInfo struct {
	// Count Number of connections having the status
	Count  int               `json:"count,omitempty"`
	Status externalRef2.Text `json:"status,omitempty"`
}

ConnectionStatusInfo defines model for connectionStatusInfo.

type ConnectionsStatusPage

type ConnectionsStatusPage struct {
	ConnectionsStatus []ConnectionStatusInfo `json:"connections_status,omitempty"`
}

ConnectionsStatusPage defines model for connectionsStatusPage.

type K8sContext

type K8sContext struct {
	Auth               externalRef2.MapObject `json:"auth,omitempty"`
	Cluster            externalRef2.MapObject `json:"cluster,omitempty"`
	CreatedAt          externalRef2.Time      `json:"created_at,omitempty"`
	CreatedBy          externalRef2.Id        `json:"created_by,omitempty"`
	DeploymentType     *string                `json:"deployment_type,omitempty"`
	Id                 externalRef2.Id        `json:"id,omitempty"`
	KubernetesServerId externalRef2.Id        `json:"kubernetes_server_id,omitempty"`
	MesheryInstanceId  externalRef2.Id        `json:"meshery_instance_id,omitempty"`
	Name               externalRef2.Text      `json:"name,omitempty"`
	Owner              externalRef2.Id        `json:"owner,omitempty"`
	Server             *string                `json:"server,omitempty"`
	UpdatedAt          externalRef2.Time      `json:"updated_at,omitempty"`
}

K8sContext defines model for k8sContext.

type K8sContextPersistResponse

type K8sContextPersistResponse struct {
	Inserted   *bool       `json:"inserted,omitempty"`
	K8sContext *K8sContext `json:"k8sContext,omitempty"`
}

K8sContextPersistResponse defines model for k8sContextPersistResponse.

type MesheryInstance

type MesheryInstance struct {
	CreatedAt      externalRef2.Time     `json:"created_at,omitempty"`
	DeletedAt      externalRef2.Time     `json:"deleted_at,omitempty"`
	Id             externalRef2.Id       `json:"id,omitempty"`
	Name           externalRef2.Text     `json:"name,omitempty"`
	ServerBuildSha externalRef2.Text     `json:"server_build_sha,omitempty"`
	ServerId       externalRef2.Text     `json:"server_id,omitempty"`
	ServerLocation externalRef2.Endpoint `json:"server_location,omitempty"`
	ServerVersion  externalRef2.Text     `json:"server_version,omitempty"`
	Status         externalRef2.Text     `json:"status,omitempty"`
	UpdatedAt      externalRef2.Time     `json:"updated_at,omitempty"`
}

MesheryInstance defines model for mesheryInstance.

type ServerId

type ServerId = externalRef2.Id

ServerId defines model for serverId.

Jump to

Keyboard shortcuts

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