Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version1 = "1" Version2 = "2" )
Scaffolding versions
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Version is the project version, defaults to "1" (backwards compatibility) Version string `json:"version,omitempty"` // Domain is the domain associated with the project and used for API groups Domain string `json:"domain,omitempty"` // Repo is the go package name of the project root Repo string `json:"repo,omitempty"` // Resources tracks scaffolded resources in the project // This info is tracked only in project with version 2 Resources []GVK `json:"resources,omitempty"` // Multigroup tracks if the project has more than one group MultiGroup bool `json:"multigroup,omitempty"` }
Config is the unmarshalled representation of the configuration file
func (*Config) AddResource ¶
AddResource appends the provided resource to the tracked ones It returns if the configuration was modified NOTE: in v1 resources are not tracked, so we return false
func (Config) HasResource ¶
HasResource returns true if API resource is already tracked
Click to show internal directories.
Click to hide internal directories.