common

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupportedComponents

func GetSupportedComponents(data versions.DevfileData) []common.DevfileComponent

GetSupportedComponents iterates through the components in the devfile and returns a list of odo supported components

Types

type AdapterContext

type AdapterContext struct {
	ComponentName string             // ComponentName is the odo component name, it is NOT related to any devfile components
	Devfile       devfile.DevfileObj // Devfile is the object returned by the Devfile parser
}

AdapterContext is a construct that is common to all adapters

type ComponentAdapter

type ComponentAdapter interface {
	Create() error
}

ComponentAdapter defines the component functions that platform-specific adapters must implement

type DevfileVolume

type DevfileVolume struct {
	Name          *string
	ContainerPath *string
	Size          *string
}

DevfileVolume is a struct for Devfile volume that is common to all the adapters

type Storage

type Storage struct {
	Name   string
	Volume DevfileVolume
}

Storage is a struct that is common to all the adapters

type StorageAdapter

type StorageAdapter interface {
	Create([]Storage) error
}

StorageAdapter defines the storage functions that platform-specific adapters must implement

Jump to

Keyboard shortcuts

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