compose

package
v0.0.0-...-a100a0c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

LoadFile loads a compose file into KomposeObject

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(fileName string) ([]byte, error)

ReadFile read data from file or stdin

Types

type Config

type Config struct {
	Version  string
	Services Services
}

We parse a very limited version of the compose file, based on just what we need from the v3 structs.

func LoadFile

func LoadFile(files []string) (Config, error)

type Labels

type Labels map[string]string

Labels is a mapping type for labels

type ServiceConfig

type ServiceConfig struct {
	Name          string
	ContainerName string
	Image         string
	Labels        Labels
}

ServiceConfig is the configuration of one service

type Services

type Services []ServiceConfig

Services is a list of ServiceConfig

Jump to

Keyboard shortcuts

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