podswap

package
v0.0.0-...-82cf839 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	YmlPath     string
	ProjectPath string
}

func ParseArguments

func ParseArguments(fs *flag.FlagSet, arguments []string) (result *Arguments, err error)

type Config

type Config struct {
	PreBuildCmd string `yaml:"pre-build-cmd"`
	BuildCmd    string `yaml:"build-cmd"`
	DeployCmd   string `yaml:"deploy-cmd"`
}

func NewConfig

func NewConfig(path string) (cfg *Config, err error)

func (*Config) Validate

func (c *Config) Validate() error

type WebhookServer

type WebhookServer struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewServer

func NewServer(arguments *Arguments) (*WebhookServer, error)

func (*WebhookServer) PrintData

func (s *WebhookServer) PrintData()

func (*WebhookServer) Start

func (s *WebhookServer) Start(ctx context.Context, ln net.Listener) error

func (*WebhookServer) WebhookHandler

func (s *WebhookServer) WebhookHandler(response http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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