Documentation
¶
Index ¶
- func WriteBytes(outputFilePath string, outputBytes []byte, forceOverwrite bool) error
- func WriteDataSourceTests(dataSourcesSchema map[string][]byte, spec util.NcloudSpecification, ...) error
- func WriteDataSources(dataSourcesSchema map[string][]byte, spec util.NcloudSpecification, ...) error
- func WriteProviders(...) error
- func WriteResourceTests(resourcesSchema map[string][]byte, spec util.NcloudSpecification, ...) error
- func WriteResources(resourcesSchema map[string][]byte, spec util.NcloudSpecification, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteBytes ¶
func WriteDataSourceTests ¶
func WriteDataSourceTests(dataSourcesSchema map[string][]byte, spec util.NcloudSpecification, outputDir, packageName string) error
WriteDataSources uses the packageName to determine whether to create a directory and package per data source. If packageName is an empty string, this indicates that the flag was not set, and the default behaviour is then to create a package and directory per data source. If packageName is set then all generated code is placed into the same directory and package.
func WriteDataSources ¶
func WriteDataSources(dataSourcesSchema map[string][]byte, spec util.NcloudSpecification, outputDir, packageName string) error
WriteDataSources uses the packageName to determine whether to create a directory and package per data source. If packageName is an empty string, this indicates that the flag was not set, and the default behaviour is then to create a package and directory per data source. If packageName is set then all generated code is placed into the same directory and package.
func WriteProviders ¶
func WriteProviders(providersSchema, providerModels, customTypeValue, providerToFrom map[string][]byte, outputDir, packageName string) error
WriteProviders uses the packageName to determine whether to create a directory and package for the provider. If packageName is an empty string, this indicates that the flag was not set, and the default behaviour is then to create a package and directory for the provider. If packageName is set then all generated code is placed into the same directory and package.
func WriteResourceTests ¶
func WriteResourceTests(resourcesSchema map[string][]byte, spec util.NcloudSpecification, outputDir, packageName string) error
WriteResources uses the packageName to determine whether to create a directory and package per resource. If packageName is an empty string, this indicates that the flag was not set, and the default behaviour is then to create a package and directory per resource. If packageName is set then all generated code is placed into the same directory and package. CORE - 여기에 줄을 추가하여 생성하는 것으로 한다.
func WriteResources ¶
func WriteResources(resourcesSchema map[string][]byte, spec util.NcloudSpecification, outputDir, packageName string) error
WriteResources uses the packageName to determine whether to create a directory and package per resource. If packageName is an empty string, this indicates that the flag was not set, and the default behaviour is then to create a package and directory per resource. If packageName is set then all generated code is placed into the same directory and package. CORE - 여기에 줄을 추가하여 생성하는 것으로 한다.
Types ¶
This section is empty.