Documentation ¶
Overview ¶
Package rackshopstore includes structs and operations to setup and manage shops for rackjobber to work on
Index ¶
- func AddShop(name string, address string, user string, password string, sdir string, ...) error
- func AddShopWithFile(path string) error
- func GetShopFromStore(name string) (*rackshop.RackShop, error)
- func ListShopsFromStore() (*[]rackshop.RackShop, error)
- func RemoveShopFromStore(name string) error
- type ShopStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddShop ¶
func AddShop(name string, address string, user string, password string, sdir string, container string) error
AddShop will add a shop to rackjobber based on the passed flags
func AddShopWithFile ¶
AddShopWithFile will add a shop based on a file where the informations are available
func GetShopFromStore ¶
GetShopFromStore will return a shop config from the store.
func ListShopsFromStore ¶
ListShopsFromStore returns all shops that are currently configured in the shop store
func RemoveShopFromStore ¶
RemoveShopFromStore will remove a shop with a given name from the shop store
Types ¶
type ShopStore ¶
ShopStore struct that defines the structure for the shopStore.yaml
func UnmarshalShopStore ¶
UnmarshalShopStore will unmarshal a yaml file at a specified path. Returns a ShopStore struct if the operation was successful
func (ShopStore) GetShopForName ¶
GetShopForName will return the shop configuration for a specific name
func (ShopStore) MarshalShopStore ¶
MarshalShopStore will marshal the current ShopStore object and return yaml data if the operation was successful