client-go: k8s.io/client-go/util/buffer Index | Files

package buffer

import "k8s.io/client-go/util/buffer"

Index

Package Files

ring_growing.go

type RingGrowing Uses

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

RingGrowing is a growing ring buffer. Not thread safe.

func NewRingGrowing Uses

func NewRingGrowing(initialSize int) *RingGrowing

NewRingGrowing constructs a new RingGrowing instance with provided parameters.

func (*RingGrowing) ReadOne Uses

func (r *RingGrowing) ReadOne() (data interface{}, ok bool)

ReadOne reads (consumes) first item from the buffer if it is available, otherwise returns false.

func (*RingGrowing) WriteOne Uses

func (r *RingGrowing) WriteOne(data interface{})

WriteOne adds an item to the end of the buffer, growing it if it is full.

Package buffer is imported by 1 packages. Updated 2018-02-13. Refresh now. Tools for package owners.