models

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 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"`
	HTML5AppsRepo        *HTML5AppsRepo         `json:"html5-apps-repo,omitempty"`
	Endpoints            *map[string]CFEndpoint `json:"endpoints,omitempty"`
}

CFCredentials Cloud Foundry response resource entity credentials

func (*CFCredentials) UnmarshalJSON added in v1.4.0

func (credentials *CFCredentials) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals Cloud Foundry service credentials

type CFEndpoint added in v1.4.0

type CFEndpoint struct {
	Timeout string `json:"timeout,omitempty"`
	URL     string `json:"url,omitempty"`
}

CFEndpoint business service endpoint

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 CFErrorResponse added in v1.4.0

type CFErrorResponse []CFErrorResponseItem

CFErrorResponse Cloud Foundry error response

type CFErrorResponseItem added in v1.4.7

type CFErrorResponseItem struct {
	Code   int    `json:"code,omitempty"`
	Title  string `json:"title,omitempty"`
	Detail string `json:"detail,omitempty"`
}

type CFJob added in v1.4.7

type CFJob struct {
	GUID      string            `json:"guid"`
	CreatedAt string            `json:"created_at"`
	UpdatedAt string            `json:"updated_at"`
	Operation string            `json:"operation"`
	State     string            `json:"state"`
	Errors    []CFJobMessage    `json:"errors"`
	Warnings  []CFJobMessage    `json:"warnings"`
	Links     map[string]CFLink `json:"links"`
}

type CFJobMessage added in v1.4.7

type CFJobMessage struct {
	Code   int64  `json:"code"`
	Title  string `json:"title"`
	Detail string `json:"detail"`
}

type CFLastOperation added in v1.4.0

type CFLastOperation struct {
	Type        string `json:"type,omitempty"`
	State       string `json:"state,omitempty"`
	Description string `json:"description,omitempty"`
	UpdatedAt   string `json:"updated_at,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
}

CFLastOperation Cloud Foundry last operation

type CFLink struct {
	Href *string `json:"href"`
}

type CFMaintenanceInfo added in v1.4.7

type CFMaintenanceInfo struct {
	Version string `json:"version"`
}

CFMaintenanceInfo Cloud Foudry response maintenance info

type CFMetadata added in v1.4.7

type CFMetadata struct {
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
}

CFMetadata Cloud Foundry resource metadata

type CFPagination added in v1.4.7

type CFPagination struct {
	TotalResults int    `json:"total_results"`
	TotalPages   int    `json:"total_pages"`
	First        CFLink `json:"first"`
	Last         CFLink `json:"last"`
	Next         CFLink `json:"next"`
	Previous     CFLink `json:"previous"`
}

CFPagination Cloud Foundry resource pagination

type CFRelationship added in v1.4.7

type CFRelationship struct {
	Data CFRelationshipData `json:"data"`
}

CFRelationship Cloud Foudry response resource relationship

type CFRelationshipData added in v1.4.7

type CFRelationshipData struct {
	GUID string `json:"guid"`
}

CFRelationshipData Cloud Foudry response resource relationship data

type CFResource

type CFResource struct {
	GUID             string                    `json:"guid"`
	CreatedAt        string                    `json:"created_at"`
	UpdatedAt        string                    `json:"updated_at"`
	Name             string                    `json:"name"`
	Tags             []string                  `json:"tags"`
	Type             string                    `json:"type"`
	MaintenanceInfo  CFMaintenanceInfo         `json:"maintenance_info"`
	IpgradeAvailable bool                      `json:"upgrade_available"`
	DashboardUrl     string                    `json:"dashboard_url"`
	LastOperation    CFLastOperation           `json:"last_operation"`
	Relationships    map[string]CFRelationship `json:"relationships"`
	Metadata         CFMetadata                `json:"metadata"`
	Links            map[string]CFLink         `json:"links"`
}

CFResource Cloud Foundry response resource

type CFResponse

type CFResponse struct {
	Pagination CFPagination `json:"pagination"`
	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
	LastOperation CFLastOperation
}

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 {
	Certificate    string `json:"certificate,omitempty"`
	CertURL        string `json:"certurl,omitempty"`
	ClientID       string `json:"clientid,omitempty"`
	ClientSecret   string `json:"clientsecret,omitempty"`
	CredentialType string `json:"credential-type,omitempty"`
	IdentityZone   string `json:"identityzone,omitempty"`
	Key            string `json:"key,omitempty"`
	URL            string `json:"url,omitempty"`
	XSAPPNAME      string `json:"xsappname,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 DestinationConfiguration added in v1.4.0

type DestinationConfiguration struct {
	Name                           string `json:"Name,omitempty"`
	Description                    string `json:"Description,omitempty"`
	Type                           string `json:"Type,omitempty"`
	URL                            string `json:"URL,omitempty"`
	Authentication                 string `json:"Authentication,omitempty"`
	ProxyType                      string `json:"ProxyType,omitempty"`
	TokenServiceURL                string `json:"tokenServiceURL,omitempty"`
	TokenServiceURLType            string `json:"tokenServiceURLType,omitempty"`
	ClientID                       string `json:"clientId,omitempty"`
	ClientSecret                   string `json:"clientSecret,omitempty"`
	Properties                     map[string]string
	DestinationServiceInstanceName string
}

DestinationConfiguration destination configuration object

func (*DestinationConfiguration) MarshalJSON added in v1.4.0

func (dc *DestinationConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON marshals destination configuration

func (*DestinationConfiguration) UnmarshalJSON added in v1.4.0

func (dc *DestinationConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals destination configuration

type DestinationListDestinationsResponse added in v1.4.0

type DestinationListDestinationsResponse = []DestinationConfiguration

DestinationListDestinationsResponse destination service list of destination configurations

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 HTML5AppDescriptor added in v1.4.0

type HTML5AppDescriptor struct {
	AuthenticationMethod *string                   `json:"authenticationMethod,omitempty"`
	Routes               []HTML5AppDescriptorRoute `json:"routes,omitempty"`
}

HTML5AppDescriptor application descriptor (xs-app.json)

func (*HTML5AppDescriptor) GetAllScopes added in v1.4.0

func (d *HTML5AppDescriptor) GetAllScopes() []string

GetAllScopes returns set of all scopes of all routes, all verbs

func (*HTML5AppDescriptor) IsAuthorizationRequired added in v1.4.0

func (d *HTML5AppDescriptor) IsAuthorizationRequired() bool

IsAuthorizationRequired check if there are routes protected with scopes

type HTML5AppDescriptorRoute added in v1.4.0

type HTML5AppDescriptorRoute struct {
	AuthenticationType *string                       `json:"authenticationType,omitempty"`
	Scope              *HTML5AppDescriptorRouteScope `json:"scope,omitempty"`
}

HTML5AppDescriptorRoute application descriptor route

func (*HTML5AppDescriptorRoute) GetAllScopes added in v1.4.0

func (r *HTML5AppDescriptorRoute) GetAllScopes() []string

GetAllScopes returns set of all scopes of all verbs

type HTML5AppDescriptorRouteScope added in v1.4.0

type HTML5AppDescriptorRouteScope struct {
	Verbs   map[string][]string
	Default []string
}

HTML5AppDescriptorRouteScope application descriptor route scope

func (*HTML5AppDescriptorRouteScope) UnmarshalJSON added in v1.4.0

func (s *HTML5AppDescriptorRouteScope) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshal scope

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 HTML5Manifest added in v1.2.0

type HTML5Manifest struct {
	SapApp   HTML5ManifestSapApp   `json:"sap.app,omitempty"`
	SapCloud HTML5ManifestSapCloud `json:"sap.cloud,omitempty"`
}

HTML5Manifest HTML5 application manifest file

type HTML5ManifestSapApp added in v1.2.0

type HTML5ManifestSapApp struct {
	ID                 string                                `json:"id,omitempty"`
	Type               string                                `json:"type,omitempty"`
	ApplicationVersion HTML5ManifestSapAppApplicationVersion `json:"applicationVersion,omitempty"`
}

HTML5ManifestSapApp HTML5 application manifest file "sap.app" namespace

type HTML5ManifestSapAppApplicationVersion added in v1.2.0

type HTML5ManifestSapAppApplicationVersion struct {
	Version string `json:"version,omitempty"`
}

HTML5ManifestSapAppApplicationVersion HTML5 application manifest file "sap.app/applicationVersion" namespace

type HTML5ManifestSapCloud added in v1.4.0

type HTML5ManifestSapCloud struct {
	Public  bool   `json:"public,omitempty"`
	Service string `json:"service,omitempty"`
}

HTML5ManifestSapCloud HTML5 application manifest file "sap.cloud" namespace

type HTML5ServiceMeta added in v1.1.0

type HTML5ServiceMeta struct {
	Status    string `json:"status,omitempty"`
	Size      int    `json:"size,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 UAASecurityDescriptor added in v1.4.0

type UAASecurityDescriptor struct {
	XSAPPNAME              string                              `json:"xsappname,omitempty"`
	ForeignScopeReferences []string                            `json:"foreign-scope-references,omitempty"`
	Scopes                 []UAASecurityDescriptorScope        `json:"scopes,omitempty"`
	RoleTemplates          []UAASecurityDescriptorRoleTemplate `json:"role-templates,omitempty"`
}

UAASecurityDescriptor XSUAA security descriptor (xs-security.json)

type UAASecurityDescriptorRoleTemplate added in v1.4.0

type UAASecurityDescriptorRoleTemplate struct {
	Name            *string  `json:"name,omitempty"`
	Description     *string  `json:"description,omitempty"`
	ScopeReferences []string `json:"scope-references,omitempty"`
}

UAASecurityDescriptorRoleTemplate XSUAA security descriptor role template

type UAASecurityDescriptorScope added in v1.4.0

type UAASecurityDescriptorScope struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

UAASecurityDescriptorScope XSUAA security descriptor scope

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