v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package v1 implements routing paths. Each services in own file.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGithub        = consoleerrors.CreateConsoleError("LatestReleaseHandler")
	ErrFailedToFetch = errors.New("repositoryError")
)
View Source
var Config *config.Config

Functions

func FetchLatestRelease

func FetchLatestRelease(c *gin.Context, repo string) (*github.Release, error)

FetchLatestRelease fetches the latest release information from GitHub API

func LatestReleaseHandler

func LatestReleaseHandler(c *gin.Context)

LatestReleaseHandler is the Gin handler function to check for the latest release

func NewRouter

func NewRouter(handler *gin.Engine, l logger.Interface, t usecase.Usecases, cfg *config.Config)

NewRouter -. Swagger spec: @title Console API for Device Management Toolkit @description Provides a single pane of glass for managing devices with Intel® Active Management Technology and other device technologies @version 1.0 @host localhost:8181 @BasePath /v1

func RepositoryError

func RepositoryError(status string) error

Types

type CIRAConfigCountResponse

type CIRAConfigCountResponse struct {
	Count int              `json:"totalCount"`
	Data  []dto.CIRAConfig `json:"data"`
}

type DeviceCountResponse

type DeviceCountResponse struct {
	Count int          `json:"totalCount"`
	Data  []dto.Device `json:"data"`
}

type DeviceStatResponse

type DeviceStatResponse struct {
	TotalCount        int `json:"totalCount"`
	ConnectedCount    int `json:"connectedCount"`
	DisconnectedCount int `json:"disconnectedCount"`
}

type DomainCountResponse

type DomainCountResponse struct {
	Count int          `json:"totalCount"`
	Data  []dto.Domain `json:"data"`
}

type IEEE8021xConfigCountResponse

type IEEE8021xConfigCountResponse struct {
	Count int                   `json:"totalCount"`
	Data  []dto.IEEE8021xConfig `json:"data"`
}

type OData

type OData struct {
	Top   int  `form:"$top,default=25"`
	Skip  int  `form:"$skip"`
	Count bool `form:"$count"`
}

type ProfileCountResponse

type ProfileCountResponse struct {
	Count int           `json:"totalCount"`
	Data  []dto.Profile `json:"data"`
}

type WirelessConfigRoutes

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

Jump to

Keyboard shortcuts

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