repository

package
v0.0.0-...-290676b Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationRepository

type ApplicationRepository struct {
	ApplicationStore    *sync.Map
	NamespaceStore      *sync.Map
	InstanceStore       *sync.Map
	CustomInstanceStore *sync.Map
}

func NewApplicationRepository

func NewApplicationRepository() *ApplicationRepository

func (*ApplicationRepository) DeleteInstance

func (appRepo *ApplicationRepository) DeleteInstance(key string) *entity.Instance

func (*ApplicationRepository) GetApplicationResources

func (appRepo *ApplicationRepository) GetApplicationResources() *entity.ApplicationResources

func (*ApplicationRepository) GetInstanceIpsByService

func (appRepo *ApplicationRepository) GetInstanceIpsByService(service string) []string

func (*ApplicationRepository) GetInstancesByService

func (appRepo *ApplicationRepository) GetInstancesByService(service string) []*entity.Instance

func (*ApplicationRepository) Register

func (appRepo *ApplicationRepository) Register(instance *entity.Instance, key string) bool

func (*ApplicationRepository) Renew

func (appRepo *ApplicationRepository) Renew(appName string, instanceId string) entity.Instance

Jump to

Keyboard shortcuts

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