utils

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 14 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 DisplayScanSuggestMsg added in v1.0.11

func DisplayScanSuggestMsg()

DisplayScanSuggestMsg displlay a message suggesting users can scan new image

func FilteredLogConsumer added in v1.0.9

func FilteredLogConsumer(consumer compose.LogConsumer, services []string) compose.LogConsumer

FilteredLogConsumer filters logs for given services

func GetWriter added in v1.0.9

func GetWriter(container, service string, events compose.ContainerEventListener) io.WriteCloser

GetWriter creates a io.Writer that will actually split by line and format by LogConsumer

func ServiceHash added in v1.0.11

func ServiceHash(o types.ServiceConfig) (string, error)

ServiceHash compute configuration has for a service TODO move this to compose-go

func StringContains

func StringContains(array []string, needle string) bool

StringContains check if an array contains a specific value

Types

type MemBytes added in v1.0.8

type MemBytes int64

MemBytes is a type for human readable memory bytes (like 128M, 2g, etc)

func (*MemBytes) Set added in v1.0.8

func (m *MemBytes) Set(value string) error

Set sets the value of the MemBytes by passing a string

func (*MemBytes) String added in v1.0.8

func (m *MemBytes) String() string

String returns the string format of the human readable memory bytes

func (*MemBytes) Type added in v1.0.8

func (m *MemBytes) Type() string

Type returns the type

func (*MemBytes) Value added in v1.0.8

func (m *MemBytes) Value() int64

Value returns the value in int64

Directories

Path Synopsis
Package prompt is a generated GoMock package.
Package prompt is a generated GoMock package.

Jump to

Keyboard shortcuts

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