model

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package model provides domain models for the opampcommander application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition added in v0.1.24

type Condition struct {
	// Type is the type of the condition.
	Type ConditionType
	// LastTransitionTime is the last time the condition transitioned.
	LastTransitionTime time.Time
	// Status is the status of the condition.
	Status ConditionStatus
	// Reason is the identifier of the user or system that triggered the condition.
	Reason string
	// Message is a human readable message indicating details about the condition.
	Message string
}

Condition represents a condition of a resource.

type ConditionStatus added in v0.1.24

type ConditionStatus string

ConditionStatus represents the status of a condition.

const (
	// ConditionStatusTrue represents a true condition status.
	ConditionStatusTrue ConditionStatus = "True"
	// ConditionStatusFalse represents a false condition status.
	ConditionStatusFalse ConditionStatus = "False"
	// ConditionStatusUnknown represents an unknown condition status.
	ConditionStatusUnknown ConditionStatus = "Unknown"
)

type ConditionType added in v0.1.24

type ConditionType string

ConditionType represents the type of a condition.

const (
	// ConditionTypeCreated represents the condition when the resource was created.
	ConditionTypeCreated ConditionType = "Created"
	// ConditionTypeUpdated represents the condition when the resource was updated.
	ConditionTypeUpdated ConditionType = "Updated"
	// ConditionTypeDeleted represents the condition when the resource was deleted.
	ConditionTypeDeleted ConditionType = "Deleted"
	// ConditionTypeAlive represents the condition when the server is alive.
	ConditionTypeAlive ConditionType = "Alive"
)

type GetOptions added in v0.1.30

type GetOptions struct {
	IncludeDeleted bool
}

GetOptions is a struct that holds options for getting a single resource.

type ListOptions added in v0.1.9

type ListOptions struct {
	Limit          int64
	Continue       string
	IncludeDeleted bool
}

ListOptions is a struct that holds options for listing resources.

type ListResponse added in v0.1.9

type ListResponse[T any] struct {
	RemainingItemCount int64
	Continue           string
	Items              []T
}

ListResponse is a generic struct that represents a paginated response for listing resources.

Directories

Path Synopsis
Package vo provides value objects vo package does not have any dependencies on other packages except the standard library
Package vo provides value objects vo package does not have any dependencies on other packages except the standard library

Jump to

Keyboard shortcuts

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