Documentation
¶
Index ¶
Constants ¶
View Source
const ( BuildStagedState = "STAGED" BuildFailedState = "FAILED" )
build states
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 NewBuildFromKpackBuild ¶
func NewBuildFromKpackBuild(kpackBuild *buildv1alpha1.Build) Build
type Destination ¶
type Destination struct { GUID string `json:"guid"` App DestinationApp `json:"app"` Weight *int `json:"weight"` Port int `json:"port"` }
type DestinationApp ¶
type DestinationApp struct { GUID string `json:"guid"` Process DestinationProcess `json:"process"` }
type DestinationProcess ¶
type DestinationProcess struct {
Type string `json:"type"`
}
type Droplet ¶
type Droplet struct {
Image string `json:"image"`
}
Droplet represents the payload that will be sent to CF API server when an Image has been rebased.
type Lifecycle ¶
type Lifecycle struct { Type string `json:"type"` Data LifecycleData `json:"data"` }
type LifecycleData ¶
type Relationship ¶
type Relationship struct {
Data RelationshipData `json:"data"`
}
type RelationshipData ¶
type RelationshipData struct {
GUID string `json:"guid"`
}
type Route ¶
type Route struct { GUID string `json:"guid"` Host string `json:"host"` Path string `json:"path"` URL string `json:"url"` Destinations []Destination `json:"destinations"` Relationships map[string]Relationship `json:"relationships"` }
type RouteList ¶
type RouteList struct { Pagination struct { TotalPages int `json:"total_pages"` } Resources []Route `json:"resources"` Included RouteListIncluded `json:"included"` }
type RouteListIncluded ¶
Click to show internal directories.
Click to hide internal directories.