aclapi

package
v0.0.0-...-a025ef4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	AppRules(ctx context.Context, appName string) ([]Rule, error)
	JobRules(ctx context.Context, jobName string) ([]Rule, error)
}

func New

func New(host, user, password string) Client

type ExternalDNSRule

type ExternalDNSRule struct {
	Name             string
	Ports            ProtoPorts
	SyncWholeNetwork bool
}

type ExternalIPRule

type ExternalIPRule struct {
	IP               string
	Ports            ProtoPorts
	SyncWholeNetwork bool
}

type KubernetesServiceRule

type KubernetesServiceRule struct {
	Namespace   string
	ServiceName string
	ClusterName string
}

type ProtoPort

type ProtoPort struct {
	Protocol string
	Port     uint16
}

type ProtoPorts

type ProtoPorts []ProtoPort

type RpaasInstanceRule

type RpaasInstanceRule struct {
	ServiceName string
	Instance    string
}

type Rule

type Rule struct {
	RuleID      string
	RuleName    string
	Source      RuleType
	Destination RuleType
	Removed     bool
	Metadata    map[string]string
	Created     time.Time
	Creator     string
}

type RuleType

type RuleType struct {
	TsuruApp          *TsuruAppRule          `json:"TsuruApp,omitempty"`
	KubernetesService *KubernetesServiceRule `json:"KubernetesService,omitempty"`
	ExternalDNS       *ExternalDNSRule       `json:"ExternalDNS,omitempty"`
	ExternalIP        *ExternalIPRule        `json:"ExternalIP,omitempty"`
	RpaasInstance     *RpaasInstanceRule     `json:"RpaasInstance,omitempty"`
}

type TsuruAppRule

type TsuruAppRule struct {
	AppName  string
	PoolName string
}

Jump to

Keyboard shortcuts

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