| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- package preview
- import "github.com/porter-dev/porter/api/types"
- type Source struct {
- Name string
- Repo string
- Version string
- IsApplication bool
- SourceValues map[string]interface{}
- }
- type Target struct {
- AppName string `mapstructure:"app_name"`
- Project uint
- Cluster uint
- Namespace string
- RegistryURL string `mapstructure:"registry_url"`
- }
- type RandomStringDriverConfig struct {
- Length uint
- Lower bool
- }
- type EnvGroupDriverConfig struct {
- EnvGroups []*types.EnvGroup `mapstructure:"env_groups"`
- }
- type UpdateConfigDriverConfig struct {
- WaitForJob bool
- // If set to true, this does not run an update, it only creates the initial application and job,
- // skipping subsequent updates
- OnlyCreate bool
- UpdateConfig struct {
- Image string
- Tag string
- } `mapstructure:"update_config"`
- EnvGroups []types.EnvGroupMeta `mapstructure:"env_groups"`
- Values map[string]interface{}
- }
- type PushDriverConfig struct {
- Push struct {
- UsePackCache bool `mapstructure:"use_pack_cache"`
- Image string
- }
- }
- type BuildDriverConfig struct {
- Build struct {
- UsePackCache bool `mapstructure:"use_pack_cache"`
- Method string
- Context string
- Dockerfile string
- Builder string
- Buildpacks []string
- Image string
- Env map[string]string
- }
- EnvGroups []types.EnvGroupMeta `mapstructure:"env_groups"`
- Values map[string]interface{}
- }
- type ApplicationConfig struct {
- WaitForJob bool
- InjectBuild bool
- // If set to true, this does not run an update, it only creates the initial application and job,
- // skipping subsequent updates
- OnlyCreate bool
- Build struct {
- UseCache bool `mapstructure:"use_cache"`
- Method string
- Context string
- Dockerfile string
- Image string
- Builder string
- Buildpacks []string
- Env map[string]string
- }
- EnvGroups []types.EnvGroupMeta `mapstructure:"env_groups"`
- Values map[string]interface{}
- }
|