Documentation
¶
Index ¶
- Constants
- Variables
- func CamelToPascalCase(s string) string
- func CreateFuncMap() template.FuncMap
- func ExtractPath(s string) string
- func FirstAlphabet(s string) string
- func FirstAlphabetToUpperCase(s string) string
- func GenArray(d *base.Schema, pName string) string
- func GenObject(d *base.Schema, pName string) string
- func Gen_ConvertOAStoTFTypes(propreties *base.Schema, openapiType, format, resourceName string) (s string, m string)
- func Generate(v3Doc *libopenapi.DocumentModel[v3high.Document]) error
- func GenerateFile(op *v3high.Operation, method, key string) error
- func GenerateStructs(responses *v3high.Responses, responseName string) ([]byte, string, string, error)
- func JoinStrings(sep string, items []string) string
- func MustAbs(path string) string
- func PascalToSnakeCase(s string) string
- func PathToFilename(s string) (filename string)
- func PathToPascal(s string) string
- func ToCamelCase(s string) string
- func ToLowerCase(s string) string
- func ToPascalCase(s string) string
- func WriteClient() []byte
- type AuthorizersResponse
- type DashboardsApikeysApikeyidProductidsResponse
- type Template
Constants ¶
View Source
const ( VERSION = "v0.4.0-beta" C )
Variables ¶
View Source
var ClientTemplate string
View Source
var MethodTemplate string
View Source
var RefreshTemplate string
Functions ¶
func CamelToPascalCase ¶
func CreateFuncMap ¶
func ExtractPath ¶
func FirstAlphabet ¶
func Gen_ConvertOAStoTFTypes ¶
func Gen_ConvertOAStoTFTypes(propreties *base.Schema, openapiType, format, resourceName string) (s string, m string)
generate converter that convert openapi.json schema to terraform type
func Generate ¶
func Generate(v3Doc *libopenapi.DocumentModel[v3high.Document]) error
func GenerateStructs ¶
func GenerateStructs(responses *v3high.Responses, responseName string) ([]byte, string, string, error)
Generate terraform-spec type based struct with *v3high.Responses input
func JoinStrings ¶
func PascalToSnakeCase ¶
func PathToFilename ¶
func PathToPascal ¶
func ToCamelCase ¶
func ToLowerCase ¶
func ToPascalCase ¶
func WriteClient ¶
func WriteClient() []byte
Types ¶
type AuthorizersResponse ¶
type AuthorizersResponse struct { Tenantid string `json:"tenantId"` Modifier string `json:"modifier"` Modtime time.Time `json:"modTime"` Domaincode string `json:"domainCode"` Cachettlsec int `json:"cacheTtlSec"` Authorizertype string `json:"authorizerType"` Authorizername string `json:"authorizerName"` Authorizerid string `json:"authorizerId"` Authorizerdescription string `json:"authorizerDescription"` Authorizerconfig struct { Payload []struct { Name string `json:"name"` In string `json:"in"` } `json:"payload"` Functionid string `json:"functionId"` Region string `json:"region"` } `json:"authorizerConfig"` }
Click to show internal directories.
Click to hide internal directories.