types

package
v1.1.9-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Common types in the Kubelet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerID

type DockerID string

DockerID is an ID of docker container. It is a type to make it clear when we're working with docker container Ids

type HttpGetter

type HttpGetter interface {
	Get(url string) (*http.Response, error)
}

type SortedContainerStatuses added in v0.20.0

type SortedContainerStatuses []api.ContainerStatus

A type to help sort container statuses based on container names.

func (SortedContainerStatuses) Len added in v0.20.0

func (s SortedContainerStatuses) Len() int

func (SortedContainerStatuses) Less added in v0.20.0

func (s SortedContainerStatuses) Less(i, j int) bool

func (SortedContainerStatuses) Swap added in v0.20.0

func (s SortedContainerStatuses) Swap(i, j int)

type Timestamp added in v0.20.0

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

Timestamp wraps around time.Time and offers utilities to format and parse the time using RFC3339Nano

func ConvertToTimestamp added in v0.20.0

func ConvertToTimestamp(timeString string) *Timestamp

ConvertToTimestamp takes a string, parses it using the RFC3339Nano layout, and converts it to a Timestamp object.

func NewTimestamp added in v0.20.0

func NewTimestamp() *Timestamp

NewTimestamp returns a Timestamp object using the current time.

func (*Timestamp) Get added in v0.20.0

func (t *Timestamp) Get() time.Time

Get returns the time as time.Time.

func (*Timestamp) GetString added in v0.20.0

func (t *Timestamp) GetString() string

GetString returns the time in the string format using the RFC3339Nano layout.

Jump to

Keyboard shortcuts

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