models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFApplication

type CFApplication struct {
	Name string
	GUID string
}

CFApplication Cloud Foundry application

type CFApplicationEnvJSON

type CFApplicationEnvJSON struct {
	VCAPApplication CFVCAPApplication `json:"VCAP_APPLICATION,omitempty"`
}

CFApplicationEnvJSON struct

type CFBindingCredentials

type CFBindingCredentials struct {
	Endpoints            *map[string]string `json:"endpoints,omitempty"`
	HTML5AppsRepo        *HTML5AppsRepo     `json:"html5-apps-repo,omitempty"`
	SAPCloudService      *string            `json:"sap.cloud.service,omitempty"`
	SAPCloudServiceAlias *string            `json:"sap.cloud.service.alias,omitempty"`
	UAA                  *XSUAA             `json:"uaa,omitempty"`
}

CFBindingCredentials struct

type CFCredentials

type CFCredentials struct {
	Vendor               *string `json:"vendor,omitempty"`
	URI                  *string `json:"uri,omitempty"`
	GrantType            *string `json:"grant_type,omitempty"`
	SapCloudService      *string `json:"sap.cloud.service,omitempty"`
	SapCloudServiceAlias *string `json:"sap.cloud.service.alias,omitempty"`
	UAA                  *CFUAA  `json:"uaa,omitempty"`
}

CFCredentials Cloud Foundry response resource entity credentials

type CFEnvironmentResponse

type CFEnvironmentResponse struct {
	SystemEnvJSON      CFSystemEnvJSON      `json:"system_env_json,omitempty"`
	ApplicationEnvJSON CFApplicationEnvJSON `json:"application_env_json,omitempty"`
}

CFEnvironmentResponse response of 'cf env'

type CFResource

type CFResource struct {
	// metadata
	Metadata *CFResourceMetadata `json:"metadata,omitempty"`

	// entity
	Entity *CFResourceEntity `json:"entity,omitempty"`
}

CFResource Cloud Foundry response resource

type CFResourceEntity

type CFResourceEntity struct {

	// name
	Name *string `json:"name,omitempty"`

	// label
	Label *string `json:"label,omitempty"`

	// credentials
	Credentials *CFCredentials `json:"credentials,omitempty"`
}

CFResourceEntity Cloud Foundry response resource entity

type CFResourceMetadata

type CFResourceMetadata struct {

	// created at
	CreatedAt string `json:"created_at,omitempty"`

	// guid
	GUID string `json:"guid,omitempty"`

	// updated at
	UpdatedAt string `json:"updated_at,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

CFResourceMetadata Cloud Foundry response resource metadata

type CFResponse

type CFResponse struct {
	TotalResults int          `json:"total_results"`
	TotalPages   int          `json:"total_pages"`
	PrevURL      *string      `json:"prev_url,omitempty"`
	NextURL      *string      `json:"next_url,omitempty"`
	Resources    []CFResource `json:"resources"`
}

CFResponse Cloud Foundry response

type CFService

type CFService struct {
	Name string
	GUID string
}

CFService Cloud Foundry service

type CFServiceBinding

type CFServiceBinding struct {
	Name        string               `json:"name,omitempty"`
	Plan        string               `json:"plan,omitempty"`
	Credentials CFBindingCredentials `json:"credentials,omitempty"`
}

CFServiceBinding struct

type CFServiceInstance

type CFServiceInstance struct {
	Name      string
	GUID      string
	UpdatedAt string
}

CFServiceInstance Cloud Foundry service instance

type CFServiceKey

type CFServiceKey struct {
	Name        string
	GUID        string
	Credentials CFCredentials
}

CFServiceKey Cloud Foundry service

type CFServicePlan

type CFServicePlan struct {
	Name string
	GUID string
}

CFServicePlan Cloud Foundry service plan

type CFSystemEnvJSON

type CFSystemEnvJSON struct {
	VCAPServices map[string][]CFServiceBinding `json:"VCAP_SERVICES,omitempty"`
}

CFSystemEnvJSON struct

type CFUAA

type CFUAA struct {
	ClientID     string `json:"clientid,omitempty"`
	ClientSecret string `json:"clientsecret,omitempty"`
	URL          string `json:"url,omitempty"`
}

CFUAA Cloud Foundry XSUAA credentials

type CFVCAPApplication added in v1.1.0

type CFVCAPApplication struct {
	CFApi              string         `json:"cf_api,omitempty"`
	Limits             map[string]int `json:"limits,omitempty"`
	ApplicationName    string         `json:"application_name,omitempty"`
	ApplicationUris    []string       `json:"application_uris,omitempty"`
	Name               string         `json:"name,omitempty"`
	SpaceName          string         `json:"space_name,omitempty"`
	SpaceID            string         `json:"space_id,omitempty"`
	Uris               []string       `json:"uris,omitempty"`
	ApplicationID      string         `json:"application_id,omitempty"`
	Version            string         `json:"version,omitempty"`
	ApplicationVersion string         `json:"application_version,omitempty"`
}

CFVCAPApplication struct

type HTML5App

type HTML5App struct {
	ApplicationName    string `json:"applicationName,omitempty"`
	ApplicationVersion string `json:"applicationVersion,omitempty"`
	ChangedOn          string `json:"changedOn,omitempty"`
	CreatedOn          string `json:"createdOn,omitempty"`
	IsDefault          bool   `json:"isDefault,omitempty"`
	IsPublic           bool   `json:"public,omitempty"`
}

HTML5App HTML5 application

type HTML5ApplicationFile

type HTML5ApplicationFile struct {
	FilePath     string `json:"filePath,omitempty"`
	FileMetadata HTML5ApplicationFileMetadata
}

HTML5ApplicationFile application file

type HTML5ApplicationFileContent added in v1.1.0

type HTML5ApplicationFileContent struct {
	Content []byte
	Error   error
}

HTML5ApplicationFileContent application file content

type HTML5ApplicationFileMetadata

type HTML5ApplicationFileMetadata struct {
	ETag     string
	FileSize int
	Error    error
}

HTML5ApplicationFileMetadata application file metadata

type HTML5AppsRepo

type HTML5AppsRepo struct {
	AppHostID string `json:"app_host_id,omitempty"`
}

HTML5AppsRepo struct

type HTML5ListApplicationFilesResponse

type HTML5ListApplicationFilesResponse []HTML5ApplicationFile

HTML5ListApplicationFilesResponse response of list application files API

type HTML5ListApplicationsResponse

type HTML5ListApplicationsResponse []HTML5App

HTML5ListApplicationsResponse response of list applications API

type HTML5ServiceMeta added in v1.1.0

type HTML5ServiceMeta struct {
	Status    string `json:"status,omitempty"`
	SizeLimit int    `json:"sizeLimit,omitempty"`
	ChangedOn string `json:"changedOn,omitempty"`
	Error     error
}

HTML5ServiceMeta HTML5 service metadata

type UAAResponse

type UAAResponse struct {
	AccessToken string `json:"access_token,omitempty"`
	TokenType   string `json:"token_type,omitempty"`
	ExpiresIn   int    `json:"expires_in,omitempty"`
	Scope       string `json:"scope,omitempty"`
	JTI         string `json:"jti,omitempty"`
}

UAAResponse XSUAA response with token

type XSUAA

type XSUAA struct {
	ClientID     string `json:"clientid,omitempty"`
	ClientSecret string `json:"clientsecret,omitempty"`
	URL          string `json:"url,omitempty"`
}

XSUAA struct

Jump to

Keyboard shortcuts

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