model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStatus

type ClusterStatus struct {
	Instances          []InstanceState `json:"instanceStates"`
	Operators          []OperatorState `json:"operatorStates"`
	EnvironmentName    string          `json:"environmentName"`
	EnvironmentVersion string          `json:"environmentVersion"`
	PlanName           string          `json:"planName"`
	PlanVersion        string          `json:"planVersion"`
	TargetName         string          `json:"targetName"`
	TargetVersion      string          `json:"targetVersion"`
}

type InstanceState

type InstanceState struct {
	Name            string            `json:"name"`
	BlockID         string            `json:"instanceId"`
	State           string            `json:"state"`
	Metadata        map[string]string `json:"metadata"`
	ReadyReplicas   int32             `json:"readyReplicas"`
	DesiredReplicas int32             `json:"desiredReplicas"`
	Type            string            `json:"type"`
}

type LoadBalancer

type LoadBalancer struct {
	Servers        []Servers `json:"servers"`
	PassHostHeader bool      `json:"passHostHeader"`
}

type OperatorState

type OperatorState struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	State string `json:"state"`
}

type Servers

type Servers struct {
	URL string `json:"url"`
}

type TLS

type TLS struct {
	Options      string `json:"options"`
	CertResolver string `json:"certResolver"`
}

type TraefikRoutes

type TraefikRoutes []struct {
	EntryPoints []string `json:"entryPoints"`
	Service     string   `json:"service"`
	Rule        string   `json:"rule"`
	Priority    int64    `json:"priority,omitempty"`
	Status      string   `json:"status"`
	Using       []string `json:"using"`
	Name        string   `json:"name"`
	Provider    string   `json:"provider"`
	Middlewares []string `json:"middlewares,omitempty"`
	TLS         TLS      `json:"tls,omitempty"`
}

type TraefikService

type TraefikService struct {
	LoadBalancer LoadBalancer      `json:"loadBalancer"`
	Status       string            `json:"status"`
	UsedBy       []string          `json:"usedBy"`
	ServerStatus map[string]string `json:"serverStatus"`
	Name         string            `json:"name"`
	Provider     string            `json:"provider"`
	Type         string            `json:"type"`
}

Jump to

Keyboard shortcuts

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