create

package
v0.12.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, opts *CreateOptions, args ...string) (*kcservices.CreateResponseItem, error)

Create a KraftCloud instance.

func NewCmd

func NewCmd() *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	AllowInsecure bool                       `noattribute:"true"`
	Auth          *config.AuthConfig         `noattribute:"true"`
	Client        kcservices.ServicesService `noattribute:"true"`
	Certificate   []string                   `local:"true" long:"certificate" short:"c" usage:"Set the certificates to use for the service"`
	Domain        []string                   `local:"true" long:"domain" short:"d" usage:"Specify the domain names of the service"`
	SubDomain     []string                   `local:"true" long:"subdomain" short:"s" usage:"Set the subdomains to use when creating the service"`
	SoftLimit     uint                       `local:"true" long:"soft-limit" short:"l" usage:"Set the soft limit for the service"`
	HardLimit     uint                       `local:"true" long:"hard-limit" short:"L" usage:"Set the hard limit for the service"`
	Metro         string                     `noattribute:"true"`
	Name          string                     `local:"true" long:"name" short:"n" usage:"Specify the name of the service"`
	Output        string                     `local:"true" long:"output" short:"o" usage:"Set output format. Options: table,yaml,json,list,raw" default:"table"`
	Token         string                     `noattribute:"true"`
}

func (*CreateOptions) Pre

func (opts *CreateOptions) Pre(cmd *cobra.Command, _ []string) error

func (*CreateOptions) Run

func (opts *CreateOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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