entity

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(db *gorm.DB, tableName string) *Store

NewStore to construct status store

func (*Store) Create

func (s *Store) Create(entity *protocol.Entity) (*protocol.Entity, error)

func (*Store) Get

func (s *Store) Get(ID string) (*protocol.Entity, error)

func (*Store) GetAll

func (s *Store) GetAll() ([]*protocol.Entity, error)

func (*Store) GetEntityByGitURL

func (s *Store) GetEntityByGitURL(gitURL string) (*protocol.Entity, error)

func (*Store) GetEntityByProjectID

func (s *Store) GetEntityByProjectID(gcpProjectID string) (*protocol.Entity, error)

func (*Store) Save

func (s *Store) Save(entity *protocol.Entity) (*protocol.Entity, error)

func (*Store) Update

func (s *Store) Update(entity *protocol.Entity) (*protocol.Entity, error)

Jump to

Keyboard shortcuts

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