v1

package
v2.16.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SkipConfigDeploymentParameter = "skipDeployment"

Variables

This section is empty.

Functions

func IsDependency

func IsDependency(property string) bool

func SplitDependency

func SplitDependency(property string) (id string, access string, err error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (*Config) GetApi

func (c *Config) GetApi() api.API

func (*Config) GetFilePath

func (c *Config) GetFilePath() string

GetFilePath returns the path (file name) of the config json

func (*Config) GetFullQualifiedId

func (c *Config) GetFullQualifiedId() string

GetFullQualifiedId returns the full qualified id of the config based on project, api and config id

func (*Config) GetId

func (c *Config) GetId() string

func (*Config) GetProject

func (c *Config) GetProject() string

func (*Config) GetProperties

func (c *Config) GetProperties() map[string]map[string]string

func (*Config) GetType

func (c *Config) GetType() string

func (*Config) HasDependencyOn

func (c *Config) HasDependencyOn(config *Config) bool

HasDependencyOn checks if one config depends on the given parameter config Having a dependency means, that the config having the dependency needs to be applied AFTER the config it depends on

type Project

type Project interface {
	GetConfigs() []*Config
	GetId() string
}

func LoadProjectsToConvert

func LoadProjectsToConvert(fs afero.Fs, apis api.APIs, path string) ([]Project, error)

LoadProjectsToConvert returns a list of projects to be converted to v2

type ProjectImpl

type ProjectImpl struct {
	Id      string
	Configs []*Config
}

func (*ProjectImpl) GetConfigs

func (p *ProjectImpl) GetConfigs() []*Config

GetConfigs returns the configs for this project

func (*ProjectImpl) GetId

func (p *ProjectImpl) GetId() string

GetId returns the id for this project

Jump to

Keyboard shortcuts

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