sourcetypes

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfInstanceApps

type CfInstanceApps struct {
	CfResources []CfResource `json:"resources"`
}

CfInstanceApps for reading cf running instance metadata

type CfResource

type CfResource struct {
	CfAppEntity CfSourceApplication `json:"entity"`
}

CfResource reads entity

type CfSourceApplication

type CfSourceApplication struct {
	Name              string            `json:"name"`
	Buildpack         string            `json:"buildpack"`
	DetectedBuildpack string            `json:"detected_buildpack"`
	Memory            int64             `json:"memory"`
	Instances         int               `json:"instances"`
	DockerImage       string            `json:"dockerimage"`
	Ports             []int32           `json:"ports"`
	Env               map[string]string `json:"environment_json,omitempty"`
}

CfSourceApplication reads source application

type ContainerConfig

type ContainerConfig struct {
	EPorts     map[string]interface{} `json:"ExposedPorts"`
	User       string                 `json:"User"`
	Env        []string               `json:"Env"`
	WorkingDir string                 `json:"WorkingDir"`
}

ContainerConfig loads container config

type DCService

type DCService struct {
	Image string `yaml:"image,omitempty"`
}

DCService reads service

type DockerCompose

type DockerCompose struct {
	Version    string               `yaml:"version"`
	DCServices map[string]DCService `yaml:"services"`
}

DockerCompose reads docker compose files

type DockerImage

type DockerImage struct {
	RepoTags []string        `json:"RepoTags"`
	CConfig  ContainerConfig `json:"ContainerConfig"`
}

DockerImage loads docker image

Jump to

Keyboard shortcuts

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