...

Source file src/github.com/redhat-developer/odo/pkg/api/binding.go

Documentation: github.com/redhat-developer/odo/pkg/api

     1  package api
     2  
     3  // ServiceBinding describes a service binding, from group binding.operators.coreos.com/v1alpha1 or servicebinding.io/v1alpha3
     4  type ServiceBinding struct {
     5  	Name   string                `json:"name"`
     6  	Spec   ServiceBindingSpec    `json:"spec"`
     7  	Status *ServiceBindingStatus `json:"status,omitempty"`
     8  }
     9  
    10  type ServiceBindingSpec struct {
    11  	Application            ServiceBindingReference   `json:"application"`
    12  	Services               []ServiceBindingReference `json:"services"`
    13  	DetectBindingResources bool                      `json:"detectBindingResources"`
    14  	BindAsFiles            bool                      `json:"bindAsFiles"`
    15  	NamingStrategy         string                    `json:"namingStrategy,omitempty"`
    16  }
    17  
    18  type ServiceBindingReference struct {
    19  	Kind       string `json:"kind,omitempty"`
    20  	Resource   string `json:"resource,omitempty"`
    21  	Namespace  string `json:"namespace,omitempty"`
    22  	Name       string `json:"name,omitempty"`
    23  	APIVersion string `json:"apiVersion,omitempty"`
    24  }
    25  
    26  type ServiceBindingStatus struct {
    27  	BindingFiles   []string     `json:"bindingFiles,omitempty"`
    28  	BindingEnvVars []string     `json:"bindingEnvVars,omitempty"`
    29  	RunningIn      RunningModes `json:"runningIn,omitempty"`
    30  }
    31  

View as plain text