network

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 9 Imported by: 0

README

应用的访问网络

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseServiceFromYaml

func ParseServiceFromYaml(yml string) (*v1.Service, error)

Types

type Client

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

func NewNetwork

func NewNetwork(cs *kubernetes.Clientset) *Client

func (*Client) CreateService

func (c *Client) CreateService(ctx context.Context, req *v1.Service) (*v1.Service, error)

func (*Client) DeleteService

func (c *Client) DeleteService(ctx context.Context, req *meta.DeleteRequest) error

func (*Client) GetService

func (c *Client) GetService(ctx context.Context, req *meta.GetRequest) (*v1.Service, error)

func (*Client) ListIngress

func (c *Client) ListIngress(ctx context.Context, req *meta.ListRequest) (*v1.IngressList, error)

func (*Client) ListService

func (c *Client) ListService(ctx context.Context, req *meta.ListRequest) (*v1.ServiceList, error)

func (*Client) Run

func (c *Client) Run(ctx context.Context, yml string) (*v1.Service, error)

func (*Client) UpdateService

func (c *Client) UpdateService(ctx context.Context, req *v1.Service) (*v1.Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳