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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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