model

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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 BrokerError

type BrokerError struct {
	Error            string `json:"error"`
	Description      string `json:"description"`
	InstanceUsable   bool   `json:"instance_usable"`
	UpdateRepeatable bool   `json:"update_repeatable"`
}

type Call

type Call struct {
	CallName   string `json:"callname"`
	AppName    string `json:"appname"`
	Url        string `json:"url"`
	AuthHeader string `json:"authheader"`
}

type CallListResponse

type CallListResponse struct {
	Calls []Call
}

type CallSchedule

type CallSchedule struct {
	AppName        string `json:"appname"`
	Name           string `json:"name"`
	Url            string `json:"Url"`
	CronExpression string `json:"cronexpression"`
	ScheduleGuid   string `json:"scheduleguid"`
}

type CallScheduleListResponse

type CallScheduleListResponse struct {
	CallSchedules []CallSchedule
}

type Catalog

type Catalog struct {
	Services []Service `json:"services"`
}

type Context

type Context struct {
	Platform     string `json:"platform"`
	OrgName      string `json:"organization_name"`
	SpaceName    string `json:"space_name"`
	InstanceName string `json:"instance_name"`
}

Context The context inside the ServiceInstance and ServiceBinding request

type CreateServiceBindingResponse

type CreateServiceBindingResponse struct {
	// SyslogDrainUrl string      `json:"syslog_drain_url, omitempty"`
	Credentials *Credentials `json:"credentials"`
}

type CreateServiceInstanceResponse

type CreateServiceInstanceResponse struct {
	ServiceId     string         `json:"service_id"`
	PlanId        string         `json:"plan_id"`
	DashboardUrl  string         `json:"dashboard_url"`
	LastOperation *LastOperation `json:"last_operation,omitempty"`
}

type Credentials

type Credentials struct {
	DummyCreds string `json:"dummycreds"`
}

type DeleteServiceInstanceResponse

type DeleteServiceInstanceResponse struct {
	Result string `json:"result,omitempty"`
}

type DummyResponse

type DummyResponse struct {
	DummyField string
}

type GenericV3Response

type GenericV3Response struct {
	Pagination struct {
		TotalResults int `json:"total_results"`
	} `json:"pagination"`
	Resources []struct {
		Guid string `json:"guid"`
	} `json:"resources"`
}

type History

type History struct {
	Guid               string
	ScheduledTime      time.Time
	ExecutionStartTime time.Time
	ExecutionEndTime   time.Time
	Message            string
	State              string
	ScheduleGuid       string
	TaskGuid           string
	CreatedAt          time.Time
}

func (History) String

func (h History) String() string

type HistoryListResponse

type HistoryListResponse struct {
	Histories []History
}

type HttpResponse

type HttpResponse struct {
	Message string `json:"message"`
}

type Job

type Job struct {
	JobName    string `json:"jobname"`
	AppName    string `json:"appname"`
	Command    string `json:"command"`
	MemoryInMB int    `json:"memory_in_mb,omitempty" `
	DiskInMB   int    `json:"disk_in_mb,omitempty" `
}

type JobListResponse

type JobListResponse struct {
	Jobs []Job
}

type JobSchedule

type JobSchedule struct {
	AppName        string `json:"appname"`
	Name           string `json:"name"`
	Command        string `json:"command"`
	CronExpression string `json:"cronexpression"`
	ScheduleGuid   string `json:"scheduleguid"`
}

type JobScheduleListResponse

type JobScheduleListResponse struct {
	JobSchedules []JobSchedule
}

type LastOperation

type LastOperation struct {
	State       string `json:"state"`
	Description string `json:"description"`
}

type Parameters

type Parameters struct {
}

Parameters These are the potential parameters that can be given on the -c parameter of "cf create-service"

type SchedulableCall

type SchedulableCall struct {
	ScheduleGuid string
	Expression   string
	CallName     string
	AppGuid      string
	SpaceGuid    string
	Url          string
	AuthHeader   string
}

type SchedulableJob

type SchedulableJob struct {
	ScheduleGuid string
	Expression   string
	JobName      string
	AppGuid      string
	SpaceGuid    string
	Command      string
	MemoryInMB   int
	DiskInMB     int
}

type ScheduleRequest

type ScheduleRequest struct {
	SpaceGUID      string `json:"spaceguid"`
	Name           string `json:"name"`
	CronExpression string `json:"cronexpression"`
	ExpressionType string
}

type Service

type Service struct {
	Name            string        `json:"name"`
	Id              string        `json:"id"`
	Description     string        `json:"description"`
	Bindable        bool          `json:"bindable"`
	MaxPollInterval int           `json:"maximum_polling_duration"`
	PlanUpdateable  bool          `json:"plan_updateable,omitempty"`
	Tags            []string      `json:"tags,omitempty"`
	Requires        []string      `json:"requires,omitempty"`
	Metadata        interface{}   `json:"metadata,omitempty"`
	Plans           []ServicePlan `json:"plans"`
	DashboardClient interface{}   `json:"dashboard_client"`
}

type ServiceInstance

type ServiceInstance struct {
	ServiceId        string      `json:"service_id"`
	PlanId           string      `json:"plan_id"`
	OrganizationGuid string      `json:"organization_guid"`
	SpaceGuid        string      `json:"space_guid"`
	Context          *Context    `json:"context"`
	Parameters       *Parameters `json:"parameters,omitempty"`
}

type ServicePlan

type ServicePlan struct {
	Name        string      `json:"name"`
	Id          string      `json:"id"`
	Description string      `json:"description"`
	Metadata    interface{} `json:"metadata,omitempty"`
	Free        bool        `json:"free,omitempty"`
}

type TaskCreateResponse

type TaskCreateResponse struct {
	GUID       string `json:"guid"`
	SequenceID int    `json:"sequence_id"`
	Name       string `json:"name"`
	Command    string `json:"command"`
	State      string `json:"state"`
	MemoryInMb int    `json:"memory_in_mb"`
	DiskInMb   int    `json:"disk_in_mb"`
	Result     struct {
		FailureReason interface{} `json:"failure_reason"`
	} `json:"result"`
	DropletGUID string `json:"droplet_guid"`
	Metadata    struct {
		Labels struct {
		} `json:"labels"`
		Annotations struct {
		} `json:"annotations"`
	} `json:"metadata"`
	CreatedAt     time.Time `json:"created_at"`
	UpdatedAt     time.Time `json:"updated_at"`
	Relationships struct {
		App struct {
			Data struct {
				GUID string `json:"guid"`
			} `json:"data"`
		} `json:"app"`
	} `json:"relationships"`
	Links struct {
		Self struct {
			Href string `json:"href"`
		} `json:"self"`
		App struct {
			Href string `json:"href"`
		} `json:"app"`
		Cancel struct {
			Href   string `json:"href"`
			Method string `json:"method"`
		} `json:"cancel"`
		Droplet struct {
			Href string `json:"href"`
		} `json:"droplet"`
	} `json:"links"`
}

type TaskListResponse

type TaskListResponse struct {
	Pagination struct {
		TotalResults int `json:"total_results"`
		TotalPages   int `json:"total_pages"`
		First        struct {
			Href string `json:"href"`
		} `json:"first"`
		Last struct {
			Href string `json:"href"`
		} `json:"last"`
		Next struct {
			Href string `json:"href"`
		} `json:"next"`
		Previous interface{} `json:"previous"`
	} `json:"pagination"`
	Resources []struct {
		GUID       string    `json:"guid"`
		CreatedAt  time.Time `json:"created_at"`
		UpdatedAt  time.Time `json:"updated_at"`
		SequenceID int       `json:"sequence_id"`
		Name       string    `json:"name"`
		State      string    `json:"state"`
		MemoryInMb int       `json:"memory_in_mb"`
		DiskInMb   int       `json:"disk_in_mb"`
		Result     struct {
			FailureReason string `json:"failure_reason"`
		} `json:"result"`
		DropletGUID   string `json:"droplet_guid"`
		Relationships struct {
			App struct {
				Data struct {
					GUID string `json:"guid"`
				} `json:"data"`
			} `json:"app"`
		} `json:"relationships"`
		Metadata struct {
			Labels struct {
			} `json:"labels"`
			Annotations struct {
			} `json:"annotations"`
		} `json:"metadata"`
		Links struct {
			Self struct {
				Href string `json:"href"`
			} `json:"self"`
			App struct {
				Href string `json:"href"`
			} `json:"app"`
			Cancel struct {
				Href   string `json:"href"`
				Method string `json:"method"`
			} `json:"cancel"`
			Droplet struct {
				Href string `json:"href"`
			} `json:"droplet"`
		} `json:"links"`
	} `json:"resources"`
}

type TokenKey

type TokenKey struct {
	Kty   string `json:"kty"`
	E     string `json:"e"`
	Use   string `json:"use"`
	Kid   string `json:"kid"`
	Alg   string `json:"alg"`
	Value string `json:"value"`
	N     string `json:"n"`
}

type TokenKeys

type TokenKeys struct {
	Keys []TokenKey `json:"keys"`
}

Jump to

Keyboard shortcuts

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