model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Guilherme Silva Sousa Licensed under the MIT License See LICENSE file in the project root for full license information.

Copyright (c) 2025 Guilherme Silva Sousa Licensed under the MIT License See LICENSE file in the project root for full license information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheInfo

type CacheInfo struct {
	Enabled     bool    `json:"enabled"`
	Size        int64   `json:"size"`
	Entries     int     `json:"entries"`
	LastUpdated string  `json:"last_updated"`
	TTL         int     `json:"ttl_seconds"`
	HitRate     float64 `json:"hit_rate"`
}

CacheInfo contains information about repository cache TODO: Implement full structure with cache statistics and metadata

type Command

type Command struct {
	ID          string                 `yaml:"id" json:"id"`
	Name        string                 `yaml:"name" json:"name"`
	Description string                 `yaml:"description" json:"description"`
	Version     string                 `yaml:"version" json:"version"`
	Metadata    map[string]interface{} `yaml:"metadata,omitempty" json:"metadata,omitempty"`
}

Command represents a full command configuration TODO: Implement full command structure based on ccmd.yaml schema

type CommandInfo

type CommandInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Version     string `json:"version"`
	Repository  string `json:"repository,omitempty"`
}

CommandInfo provides basic metadata about a command

type RepositoryConfig

type RepositoryConfig struct {
	Type   string                 `yaml:"type" json:"type"`
	Config map[string]interface{} `yaml:"config" json:"config"`
}

RepositoryConfig holds configuration for different repository types

type RepositoryInfo

type RepositoryInfo struct {
	Type        string                 `json:"type"`
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Status      string                 `json:"status"`
	Metadata    map[string]interface{} `json:"metadata,omitempty"`
}

RepositoryInfo contains metadata about a repository TODO: Implement full structure with status, capabilities, and statistics

Jump to

Keyboard shortcuts

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