application

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Metadata Metadata          `json:"metadata"`
	Spec     ApplicationSpec   `json:"spec"`
	Status   ApplicationStatus `json:"status"`
}

func CreateApplication

func CreateApplication(ctx context.Context, app *Application) (*Application, error)

type ApplicationSpec

type ApplicationSpec struct {
	Replica     int    `json:"replica"`
	OtherFields string `json:"other"`
}

type ApplicationStatus

type ApplicationStatus struct {
	Phase   string `json:"phase"`
	Message string `json:"message"`
}

type ApplicationV1

type ApplicationV1 struct {
	Name      string `json:"name"`
	Partition string `json:"partition"`
	Replica   int    `json:"replica"`
	Phase     string `json:"phase"`
	Message   string `json:"message"`
}

type Metadata

type Metadata struct {
	Name      string `json:"name"`
	Partition string `json:"partition"`
}

Source Files

Jump to

Keyboard shortcuts

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