package types
import "k8s.io/kubernetes/pkg/kubelet/types"
Common types in the Kubelet.
Index ¶
- type DockerID
- type HttpGetter
- type SortedContainerStatuses
- func (s SortedContainerStatuses) Len() int
- func (s SortedContainerStatuses) Less(i, j int) bool
- func (s SortedContainerStatuses) Swap(i, j int)
- type Timestamp
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 SortedContainerStatuses ¶
type SortedContainerStatuses []api.ContainerStatus
A type to help sort container statuses based on container names.
func (SortedContainerStatuses) Len ¶
func (s SortedContainerStatuses) Len() int
func (SortedContainerStatuses) Less ¶
func (s SortedContainerStatuses) Less(i, j int) bool
func (SortedContainerStatuses) Swap ¶
func (s SortedContainerStatuses) Swap(i, j int)
type Timestamp ¶
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 ¶
ConvertToTimestamp takes a string, parses it using the RFC3339Nano layout, and converts it to a Timestamp object.
func NewTimestamp ¶
func NewTimestamp() *Timestamp
NewTimestamp returns a Timestamp object using the current time.
func (*Timestamp) Get ¶
Get returns the time as time.Time.
func (*Timestamp) GetString ¶
GetString returns the time in the string format using the RFC3339Nano layout.
Source Files ¶
doc.go types.go
- Version
- v1.1.0
- Published
- Sep 25, 2015
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 23 seconds ago –
Tools for package owners.