...

Source file src/github.com/redhat-developer/odo/pkg/machineoutput/registry.go

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

     1  package machineoutput
     2  
     3  import (
     4  	"github.com/redhat-developer/odo/pkg/preference"
     5  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
     6  )
     7  
     8  type RegistryListOutput struct {
     9  	metav1.TypeMeta   `json:",inline"`
    10  	metav1.ObjectMeta `json:"metadata,omitempty"`
    11  	RegistryList      *[]preference.Registry `json:"registries,omitempty"`
    12  }
    13  
    14  func NewRegistryListOutput(registryList *[]preference.Registry) RegistryListOutput {
    15  	return RegistryListOutput{
    16  		TypeMeta: metav1.TypeMeta{
    17  			Kind:       "List",
    18  			APIVersion: APIVersion,
    19  		},
    20  		RegistryList: registryList,
    21  	}
    22  }
    23  

View as plain text