Documentation ¶
Index ¶
- Constants
- func ServiceBindingAPIResource() *unversioned.APIResource
- func ServiceBrokerAPIResource() *unversioned.APIResource
- func ServiceClassAPIResource() *unversioned.APIResource
- func ServiceInstanceAPIResource() *unversioned.APIResource
- func TranslateToTPR(raw runtime.Object, tpr runtime.Object, expectedKind string) error
- func TranslateToUnstructured(obj runtime.Object) (*runtime.Unstructured, error)
- type ErrMismatchedKinds
- type ServiceBinding
- type ServiceBindingSpec
- type ServiceBindingState
- type ServiceBindingStatus
- type ServiceBroker
- type ServiceBrokerState
- type ServiceBrokerStatus
- type ServiceClass
- type ServiceInstance
- type ServiceInstanceSpec
- type ServiceInstanceState
- type ServiceInstanceStatus
- type ServicePlan
Constants ¶
const ( ServiceBindingKind = "ServiceBinding" ServiceBindingKindPlural = "ServiceBindings" )
const ( ServiceBrokerKind = "ServiceBroker" ServiceBrokerKindPlural = "ServiceBrokers" )
const ( ServiceClassKind = "ServiceClass" ServiceClassKindPlural = "ServiceClasses" )
const APIVersion = "steward.deis.io/v1"
Variables ¶
This section is empty.
Functions ¶
func ServiceBindingAPIResource ¶
func ServiceBindingAPIResource() *unversioned.APIResource
ServiceBindingAPIResource returns an APIResource to describe the ServiceBinding third party resource
func ServiceBrokerAPIResource ¶
func ServiceBrokerAPIResource() *unversioned.APIResource
ServiceBrokerAPIResource returns an APIResource to describe the ServiceBroker third party resource
func ServiceClassAPIResource ¶
func ServiceClassAPIResource() *unversioned.APIResource
func ServiceInstanceAPIResource ¶
func ServiceInstanceAPIResource() *unversioned.APIResource
ServiceInstanceAPIResource returns an APIResource to describe the ServiceInstance third party resource
func TranslateToTPR ¶
TranslateToTPR translates a raw runtime.Object into the given tpr. In many cases, this will be used to convert a *runtime.Unstructured into a third party resource.
If the translation fails, a non-nil error will be returned. In ese cases, tpr may have been written to, but its contents are not guaranteed.
This code was inspired by the TPRObjectToSCObject function introduced in https://github.com/kubernetes-incubator/service-catalog/pull/37/files
func TranslateToUnstructured ¶
func TranslateToUnstructured(obj runtime.Object) (*runtime.Unstructured, error)
TranslateToUnstructured converts a runtime.Object into a *runtime.Unstructured.
This code was inspired by the SCObjectToTPRObject function introduced in https://github.com/kubernetes-incubator/service-catalog/pull/37
Types ¶
type ErrMismatchedKinds ¶
func (ErrMismatchedKinds) Error ¶
func (e ErrMismatchedKinds) Error() string
type ServiceBinding ¶
type ServiceBinding struct { unversioned.TypeMeta `json:",inline"` api.ObjectMeta `json:"metadata,omitempty"` Spec ServiceBindingSpec `json:"spec"` Status ServiceBindingStatus `json:"status"` }
type ServiceBindingSpec ¶
type ServiceBindingSpec struct { ID string `json:"id"` ServiceInstanceRef api.ObjectReference `json:"service_instance_ref"` Parameters lib.JSONObject `json:"parameters"` SecretName string `json:"secret_name"` }
type ServiceBindingState ¶
type ServiceBindingState string
const ( ServiceBindingStatePending ServiceBindingState = "Pending" ServiceBindingStateBound ServiceBindingState = "Bound" ServiceBindingStateFailed ServiceBindingState = "Failed" )
type ServiceBindingStatus ¶
type ServiceBindingStatus struct {
State ServiceBindingState `json:"state"`
}
type ServiceBroker ¶
type ServiceBroker struct { unversioned.TypeMeta `json:",inline"` v1.ObjectMeta `json:"metadata,omitempty"` Spec framework.ServiceBrokerSpec Status ServiceBrokerStatus }
type ServiceBrokerState ¶
type ServiceBrokerState string
const ( ServiceBrokerStatePending ServiceBrokerState = "Pending" ServiceBrokerStateAvailable ServiceBrokerState = "Available" ServiceBrokerStateFailed ServiceBrokerState = "Failed" )
type ServiceBrokerStatus ¶
type ServiceBrokerStatus struct {
State ServiceBrokerState `json:"state"`
}
type ServiceClass ¶
type ServiceClass struct { unversioned.TypeMeta `json:",inline"` v1.ObjectMeta `json:"metadata,omitempty"` ServiceBrokerRef api.ObjectReference `json:"service_broker_ref"` ID string `json:"id"` ServiceBrokerName string `json:"service_broker_name"` Bindable bool `json:"bindable"` Plans []ServicePlan `json:"plans"` PlanUpdatable bool `json:"updatable"` Description string `json:"description"` }
type ServiceInstance ¶
type ServiceInstance struct { unversioned.TypeMeta `json:",inline"` v1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceInstanceSpec `json:"spec"` Status ServiceInstanceStatus `json:"status"` }
type ServiceInstanceSpec ¶
type ServiceInstanceSpec struct { ID string `json:"id"` ServiceClassRef api.ObjectReference `json:"service_class_ref"` // PlanID is the reference to the ServicePlan for this service instance. PlanID string `json:"plan_id"` Parameters map[string]interface{} `json:"parameters"` }
type ServiceInstanceState ¶
type ServiceInstanceState string
const ( ServiceInstanceKind = "ServiceInstance" ServiceInstanceKindPlural = "ServiceInstances" ServiceInstanceStatePending ServiceInstanceState = "Pending" ServiceInstanceStateProvisioned ServiceInstanceState = "Provisioned" ServiceInstanceStateFailed ServiceInstanceState = "Failed" ServiceInstanceStateUnknown ServiceInstanceState = "Unkown" )
type ServiceInstanceStatus ¶
type ServiceInstanceStatus struct { Status ServiceInstanceState `json:"status"` StatusReason string `json:"status_reason"` }