api_model

package
v0.0.0-...-6863e89 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BuildFailedState = "FAILED"
View Source
const BuildStagedState = "STAGED"
View Source
const KpackLifecycleType = "kpack"

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	State     string    `json:"state"`
	Error     string    `json:"error"`
	Lifecycle Lifecycle `json:"lifecycle"`
}

Build represents the payload that will be sent to CF API server when a kpack Build has been updated.

func NewBuild

func NewBuild(build *kpack_build.Build) Build

type Lifecycle

type Lifecycle struct {
	Type string        `json:"type"`
	Data LifecycleData `json:"data"`
}

type LifecycleData

type LifecycleData struct {
	Image        string            `json:"image"`
	ProcessTypes map[string]string `json:"processTypes"`
}

Jump to

Keyboard shortcuts

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