utils

package
v0.0.0-...-530d8eb Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveDuplicatesFromSlice

func RemoveDuplicatesFromSlice(s []string) []string

RemoveDuplicatesFromSlice remove duplicate item from a slice

Types

type Locks

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

Locks is a struc for what the lock strategy is based on

func NewLocks

func NewLocks() *Locks

NewLocks initialize everything

func (*Locks) LoadOrStoreLock

func (l *Locks) LoadOrStoreLock(namespace string)

LoadOrStoreLock takes as param the namespace and locks it

func (*Locks) Unlock

func (l *Locks) Unlock(namespace string)

Unlock takes the namespace and further release the lock

type MultistagingSpecs

type MultistagingSpecs struct {
	Ingresses []string   `json:"ingresses"`
	Status    string     `json:"status"`
	JobName   string     `json:"job_name"`
	CVSRefs   git.Commit `json:"cvs_refs"`
}

MultistagingSpecs is a complex struct that describe the multistaging environment

type StatusPerProject

type StatusPerProject map[string]*MultistagingSpecs

StatusPerProject type-def with map of string and IngressesWithStatus

Jump to

Keyboard shortcuts

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