model

package
v0.0.0-...-85617d8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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 Domain

type Domain struct {
	GUID     string `json:"guid"`
	Name     string `json:"name"`
	Internal bool   `json:"internal"`
}

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 LifecycleData struct {
	Image        string            `json:"image"`
	ProcessTypes map[string]string `json:"processTypes"`
}

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

type RouteListIncluded struct {
	Spaces  []Space  `json:"spaces"`
	Domains []Domain `json:"domains"`
}

type Space

type Space struct {
	GUID          string                  `json:"guid"`
	Name          string                  `json:"name"`
	Relationships map[string]Relationship `json:"relationships"`
}

Jump to

Keyboard shortcuts

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