util

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright The Kubeform Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var License string

Functions

func DownloadRepository added in v0.0.4

func DownloadRepository(name, link, outputPath string) (string, error)

func GenerateModuleCRD added in v0.0.4

func GenerateModuleCRD(path, name string) string

func GenerateModuleData added in v0.0.4

func GenerateModuleData(fileName, templateFile, generatedFilePath string) (modulePaths []string, structNames []string, err error)

func GenerateProviderAPIS

func GenerateProviderAPIS(providerName, version string, schmeas []map[string]*schema.Schema, structNames []string) error

func TerraformSchemaToStruct

func TerraformSchemaToStruct(s map[string]*schema.Schema, structName, providerName string, genProviderRef bool, genSecret *bool, out *string)

func Unzip added in v0.0.4

func Unzip(src string, dest string) ([]string, error)

Types

type ApisData

type ApisData struct {
	ProviderName string
	Version      string
	StructName   []string
	License      string
}

type TypeData

type TypeData struct {
	Name    string
	Spec    string
	License string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL