rackshop

package
v0.0.0-...-648df55 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package rackshop includes the struct and functions to manage rackshops used in the rackshopstore

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RackShop

type RackShop struct {
	Name        string
	Address     string
	User        string
	Password    string
	ShopwareDir string
	Container   string
}

RackShop struct that holds the information for a Shop that will be stored in the ShopStore

func UnmarshalRackShop

func UnmarshalRackShop(yamlPath string) (*RackShop, error)

UnmarshalRackShop will unmarshal a yaml file at a specified path. Returns a RackShop struct if the operation was successful

func (RackShop) GetRemoteConfig

func (r RackShop) GetRemoteConfig() *ssh.ClientConfig

GetRemoteConfig will return a remote config, with that a ssh connection to the shop should be possible

func (RackShop) MarshalRackShop

func (r RackShop) MarshalRackShop() (*[]byte, error)

MarshalRackShop will marshal the current RackShop struct and return yaml data.

Jump to

Keyboard shortcuts

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