Project Structure¶
The repository is organized as follows:
k8stool/
├── cmd/ # Main command-line entry point
├── internal/ # Internal packages
│ ├── k8s/ # Kubernetes client wrappers
│ └── cli/ # Command-line interface components
├── pkg/ # Public packages
├── docs/ # Documentation
├── images/ # Project images and assets
├── .github/ # GitHub workflows and templates
├── go.mod # Go module definition
├── go.sum # Go module checksums
├── .goreleaser.yml # GoReleaser configuration
├── .golangci.yml # GolangCI-Lint configuration
├── .air.toml # Air live reload configuration
├── LICENSE # Project license
└── README.md # Project documentation
Directory Details¶
Core Code¶
cmd/: Contains the main application entry pointinternal/: Private packages used only within this projectk8s/: Kubernetes client implementationscli/: Command-line interface logicpkg/: Public packages that could be used by external projects
Documentation¶
docs/: MkDocs documentation filesimages/: Project images and screenshotsREADME.md: Project overview and quick start
Configuration¶
.github/: GitHub-specific configurations and workflows.goreleaser.yml: Release automation configuration.golangci.yml: Linter configuration.air.toml: Development live reload settings
Dependencies¶
go.mod: Go module dependenciesgo.sum: Dependency checksums