dockerfile

package
v0.0.0-...-b308b1d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright © 2022 António Inácio

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerfile

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

Dockerfile abstracts the recipe to render dockerfiles for specific languages<F5>

func NewDockerfile

func NewDockerfile(useMakefile bool, buildLayer string, runtimeLayer string) *Dockerfile

func (Dockerfile) IsValid

func (d Dockerfile) IsValid() error

func (Dockerfile) Model

func (d Dockerfile) Model() interface{}

func (Dockerfile) Source

func (d Dockerfile) Source() string

type GoDockerfile

type GoDockerfile struct {
	UseMakefile       bool
	Entrypoint        string
	BuildLayerImage   string
	RuntimeLayerImage string
}

GoDockerfile is a Dockerfile Renderer for Go applications

func NewGoDockerfile

func NewGoDockerfile(
	useMakefile bool,
	entrypoint string,
	buildLayerImage string,
	runtimeLayerImage string) *GoDockerfile

func (GoDockerfile) IsValid

func (d GoDockerfile) IsValid() error

func (GoDockerfile) Model

func (d GoDockerfile) Model() interface{}

func (GoDockerfile) Source

func (d GoDockerfile) Source() string

Jump to

Keyboard shortcuts

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