Documentation ¶
Index ¶
Constants ¶
const ( // SchemaAttrNameComment is the name of the APT repository schema attribute for the associated comment. SchemaAttrNameComment = "comment" // SchemaAttrNameComponents is the name of the APT repository schema attribute for the list of components. SchemaAttrNameComponents = "components" // SchemaAttrNameEnabled is the name of the APT repository schema attribute that indicates the activation status. SchemaAttrNameEnabled = "enabled" // SchemaAttrNameFilePath is the name of the APT repository schema attribute for the path of the defining source list // file. SchemaAttrNameFilePath = "file_path" // SchemaAttrNameFileType is the name of the APT repository schema attribute for the format of the defining source // list file. SchemaAttrNameFileType = "file_type" // SchemaAttrNameIndex is the name of the APT repository schema attribute for the index within the defining source // list file. SchemaAttrNameIndex = "index" // SchemaAttrNameNode is the name of the APT repository schema attribute for the name of the Proxmox VE node. SchemaAttrNameNode = "node" // SchemaAttrNamePackageTypes is the name of the APT repository schema attribute for the list of package types. SchemaAttrNamePackageTypes = "package_types" // SchemaAttrNameStandardDescription is the name of the APT repository schema attribute for the description. SchemaAttrNameStandardDescription = "description" // SchemaAttrNameStandardHandle is the name of the APT repository schema attribute for the standard repository // handle. SchemaAttrNameStandardHandle = "handle" // SchemaAttrNameStandardName is the name of the APT repository schema attribute for the human-readable name. SchemaAttrNameStandardName = "name" // SchemaAttrNameStandardStatus is the name of the APT standard repository schema attribute that indicates the // configuration and activation status. SchemaAttrNameStandardStatus = "status" // SchemaAttrNameSuites is the name of the APT repository schema attribute for the list of package distributions. SchemaAttrNameSuites = "suites" // SchemaAttrNameTerraformID is the name of the APT repository schema attribute for the Terraform ID. SchemaAttrNameTerraformID = "id" // SchemaAttrNameURIs is the name of the APT repository schema attribute for the list of repository URIs. SchemaAttrNameURIs = "uris" )
Note that most constants are exported to allow the usage in (acceptance) tests.
const ( // ResourceRepoIDPrefix is the prefix for the resource ID of repositoryResource. ResourceRepoIDPrefix = "apt_repository" // ResourceRepoActivationStatus is the default activation status for newly created or imported APT repositories. // This reflects the same default value used by the Proxmox VE API when the "enabled" parameter is not set. ResourceRepoActivationStatus = true )
const (
// ResourceStandardRepoIDPrefix is the prefix for the resource ID of standardRepositoryResource.
ResourceStandardRepoIDPrefix = "apt_standard_repository"
)
Variables ¶
var RepoIDCharReplaceRegEx = regexp.MustCompile(`([^a-zA-Z1-9_])`)
RepoIDCharReplaceRegEx is a regular expression to replace characters in a Terraform resource/data source ID. The "^" at the beginning of the character group selects all characters not matching the group.
Functions ¶
func NewRepositoryDataSource ¶ added in v0.63.0
func NewRepositoryDataSource() datasource.DataSource
NewRepositoryDataSource returns a new data source for an APT repository. This is a helper function to simplify the provider implementation.
func NewRepositoryResource ¶ added in v0.63.0
NewRepositoryResource returns a new resource for managing an APT repository. This is a helper function to simplify the provider implementation.
func NewStandardRepositoryDataSource ¶ added in v0.63.0
func NewStandardRepositoryDataSource() datasource.DataSource
NewStandardRepositoryDataSource returns a new data source for an APT standard repository. This is a helper function to simplify the provider implementation.
func NewStandardRepositoryResource ¶ added in v0.63.0
NewStandardRepositoryResource returns a new resource for managing an APT standard repository. This is a helper function to simplify the provider implementation.
Types ¶
This section is empty.