internal

package
v6.23.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppsFromRouteRequest          = "AppsFromRoute"
	AppsRequest                   = "Apps"
	DeleteOrganizationRequest     = "DeleteOrganization"
	DeleteRouteRequest            = "DeleteRoute"
	DeleteServiceBindingRequest   = "DeleteServiceBinding"
	InfoRequest                   = "Info"
	OrganizationsRequest          = "Organizations"
	PrivateDomainRequest          = "PrivateDomain"
	RouteMappingsFromRouteRequest = "RouteMappingsFromRoute"
	RoutesFromSpaceRequest        = "RoutesFromSpace"
	ServiceBindingsRequest        = "ServiceBindings"
	ServiceInstancesRequest       = "ServiceInstances"
	SharedDomainRequest           = "SharedDomain"
	SpaceServiceInstancesRequest  = "SpaceServiceInstances"
	UsersRequest                  = "Users"
)

Variables

View Source
var APIRoutes = rata.Routes{
	{Path: "/v2/apps", Method: http.MethodGet, Name: AppsRequest},
	{Path: "/v2/info", Method: http.MethodGet, Name: InfoRequest},
	{Path: "/v2/organizations", Method: http.MethodGet, Name: OrganizationsRequest},
	{Path: "/v2/organizations/:organization_guid", Method: http.MethodDelete, Name: DeleteOrganizationRequest},
	{Path: "/v2/private_domains/:private_domain_guid", Method: http.MethodGet, Name: PrivateDomainRequest},
	{Path: "/v2/routes/:route_guid", Method: http.MethodDelete, Name: DeleteRouteRequest},
	{Path: "/v2/routes/:route_guid/apps", Method: http.MethodGet, Name: AppsFromRouteRequest},
	{Path: "/v2/routes/:route_guid/route_mappings", Method: http.MethodGet, Name: RouteMappingsFromRouteRequest},
	{Path: "/v2/service_bindings", Method: http.MethodGet, Name: ServiceBindingsRequest},
	{Path: "/v2/service_bindings/:service_binding_guid", Method: http.MethodDelete, Name: DeleteServiceBindingRequest},
	{Path: "/v2/service_instances", Method: http.MethodGet, Name: ServiceInstancesRequest},
	{Path: "/v2/shared_domains/:shared_domain_guid", Method: http.MethodGet, Name: SharedDomainRequest},
	{Path: "/v2/spaces/:guid/service_instances", Method: http.MethodGet, Name: SpaceServiceInstancesRequest},
	{Path: "/v2/spaces/:space_guid/routes", Method: http.MethodGet, Name: RoutesFromSpaceRequest},
	{Path: "/v2/users", Method: http.MethodPost, Name: UsersRequest},
}

APIRoutes is a list of routes used by the rata library to construct request URLs.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	GUID      string    `json:"guid"`
	URL       string    `json:"url"`
	CreatedAt time.Time `json:"created_at"`

	// UpdatedAt is the update time for a given object, it can be null
	UpdatedAt *time.Time `json:"updated_at"`
}

Metadata represents the "metadata" object of a resource item in a Cloud Controller response.

Jump to

Keyboard shortcuts

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