solutions

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBackstageNamespace string = "default"
View Source
const EntityVersionLabelName string = "techzone.ibm.com/version"
View Source
const PipelineLocationAnnotationName string = "techzone.ibm.com/tekton-pipeline-location"

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Filter []string
}

func NewFilter added in v0.1.24

func NewFilter(options ...FilterOptions) *Filter

func (*Filter) BuildFilter added in v0.1.24

func (f *Filter) BuildFilter() []string

type FilterOptions added in v0.1.24

type FilterOptions func(*Filter)

func ComponentNameFilter added in v0.1.28

func ComponentNameFilter(name []string) FilterOptions

func KindFilter added in v0.1.24

func KindFilter(kind []string) FilterOptions

func OwnerFilter added in v0.1.24

func OwnerFilter(owner []string) FilterOptions

func TypeFilter added in v0.1.26

func TypeFilter(t []string) FilterOptions

type JsonSolutionWriter added in v0.1.26

type JsonSolutionWriter struct{}

func (*JsonSolutionWriter) Write added in v0.1.26

func (j *JsonSolutionWriter) Write(w io.Writer, s *Solution) error

func (*JsonSolutionWriter) WriteMany added in v0.1.26

func (j *JsonSolutionWriter) WriteMany(w io.Writer, ss []Solution) error

type Solution

type Solution struct {
	Entity *backstage.Entity
}

Solution

func (*Solution) PipelineURL added in v0.1.26

func (s *Solution) PipelineURL() string

PipelineURL gets the pipeline URL from the entity's metadata. This should be the full path of the Pipeline YAML file in a GitHub repository.

func (*Solution) Version added in v0.1.26

func (s *Solution) Version() string

Version of the solution gets the version string from the entity's metadata. This is a convenience property that pulls the value from the label with the value "techzone.ibm.com/version".

type SolutionInfo added in v0.1.26

type SolutionInfo struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	UID       string `json:"UID"`
}

type SolutionServiceClient added in v0.1.26

type SolutionServiceClient interface {
	Get(id string) (*Solution, error)
	GetAll(f *Filter) ([]Solution, error)
}

func NewWebServiceClient added in v0.1.26

func NewWebServiceClient(c *configuration.ApiConfig) (SolutionServiceClient, error)

type SolutionWriter added in v0.1.26

type SolutionWriter interface {
	Write(w io.Writer, s *Solution) error
	WriteMany(w io.Writer, ss []Solution) error
}

func NewSolutionWriter added in v0.1.26

func NewSolutionWriter(format string) SolutionWriter

type SolutionWriters added in v0.1.26

type SolutionWriters struct {
	// contains filtered or unexported fields
}

func (*SolutionWriters) Load added in v0.1.26

func (w *SolutionWriters) Load(name string) SolutionWriter

func (*SolutionWriters) Register added in v0.1.26

func (w *SolutionWriters) Register(name string, writer SolutionWriter)

type TextSolutionWriter added in v0.1.26

type TextSolutionWriter struct{}

func (*TextSolutionWriter) Write added in v0.1.26

func (t *TextSolutionWriter) Write(w io.Writer, s *Solution) error

func (*TextSolutionWriter) WriteMany added in v0.1.26

func (t *TextSolutionWriter) WriteMany(w io.Writer, ss []Solution) error

type WebServiceClient added in v0.1.26

type WebServiceClient struct {
	Client  *backstage.Client
	BaseURL string
	Token   string
}

func (WebServiceClient) Get added in v0.1.26

func (c WebServiceClient) Get(id string) (*Solution, error)

Get returns the Solution or an error.

func (WebServiceClient) GetAll added in v0.1.26

func (c WebServiceClient) GetAll(f *Filter) ([]Solution, error)

Jump to

Keyboard shortcuts

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