Documentation
¶
Index ¶
- Constants
- func DefaultProfileName(infraID string) string
- func NewCreateCommand() *cobra.Command
- func NewCreateIAMCommand() *cobra.Command
- func NewDestroyCommand() *cobra.Command
- func NewDestroyIAMCommand() *cobra.Command
- type CreateIAMOptions
- func (o *CreateIAMOptions) CreateCredentialedUserWithPolicy(ctx context.Context, client iamiface.IAMAPI, userName, policyDocument string) (*iam.AccessKey, error)
- func (o *CreateIAMOptions) CreateIAM(ctx context.Context, client crclient.Client) (*CreateIAMOutput, error)
- func (o *CreateIAMOptions) CreateOIDCResources(iamClient iamiface.IAMAPI) (*CreateIAMOutput, error)
- func (o *CreateIAMOptions) CreateOIDCRole(client iamiface.IAMAPI, name, trustPolicy, permPolicy string) (string, error)
- func (o *CreateIAMOptions) CreateWorkerInstanceProfile(client iamiface.IAMAPI, profileName string) error
- func (o *CreateIAMOptions) Run(ctx context.Context, client crclient.Client) error
- type CreateIAMOutput
- type CreateInfraOptions
- func (o *CreateInfraOptions) CreateDHCPOptions(client ec2iface.EC2API, vpcID string) error
- func (o *CreateInfraOptions) CreateInfra(ctx context.Context) (*CreateInfraOutput, error)
- func (o *CreateInfraOptions) CreateInternetGateway(client ec2iface.EC2API, vpcID string) (string, error)
- func (o *CreateInfraOptions) CreateNATGateway(client ec2iface.EC2API, publicSubnetID, availabilityZone string) (string, error)
- func (o *CreateInfraOptions) CreatePrivateRouteTable(client ec2iface.EC2API, vpcID, natGatewayID, subnetID, zone string) (string, error)
- func (o *CreateInfraOptions) CreatePrivateSubnet(client ec2iface.EC2API, vpcID string, zone string) (string, error)
- func (o *CreateInfraOptions) CreatePrivateZone(ctx context.Context, client route53iface.Route53API, vpcID string) (string, error)
- func (o *CreateInfraOptions) CreatePublicRouteTable(client ec2iface.EC2API, vpcID, igwID, subnetID, zone string) (string, error)
- func (o *CreateInfraOptions) CreatePublicSubnet(client ec2iface.EC2API, vpcID string, zone string) (string, error)
- func (o *CreateInfraOptions) CreateSubnet(client ec2iface.EC2API, vpcID, zone, cidr, name string) (string, error)
- func (o *CreateInfraOptions) CreateVPCS3Endpoint(client ec2iface.EC2API, vpcID, privateRouteTableId, publicRouteTableId string) error
- func (o *CreateInfraOptions) CreateWorkerSecurityGroup(client ec2iface.EC2API, vpcID string) (string, error)
- func (o *CreateInfraOptions) LookupPublicZone(ctx context.Context, client route53iface.Route53API) (string, error)
- func (o *CreateInfraOptions) Run(ctx context.Context) error
- type CreateInfraOutput
- type DestroyIAMOptions
- func (o *DestroyIAMOptions) DestroyIAM(ctx context.Context) error
- func (o *DestroyIAMOptions) DestroyOIDCResources(ctx context.Context, iamClient iamiface.IAMAPI) error
- func (o *DestroyIAMOptions) DestroyOIDCRole(client iamiface.IAMAPI, name string) error
- func (o *DestroyIAMOptions) DestroyUser(ctx context.Context, client iamiface.IAMAPI, name string) error
- func (o *DestroyIAMOptions) DestroyWorkerInstanceProfile(client iamiface.IAMAPI) error
- func (o *DestroyIAMOptions) Run(ctx context.Context) error
- type DestroyInfraOptions
- func (o *DestroyInfraOptions) CleanupPublicZone(ctx context.Context, client route53iface.Route53API) error
- func (o *DestroyInfraOptions) DestroyDHCPOptions(ctx context.Context, client ec2iface.EC2API) []error
- func (o *DestroyInfraOptions) DestroyDNS(ctx context.Context, client route53iface.Route53API) []error
- func (o *DestroyInfraOptions) DestroyEIPs(ctx context.Context, client ec2iface.EC2API) []error
- func (o *DestroyInfraOptions) DestroyELBs(ctx context.Context, client elbiface.ELBAPI, vpcID *string) []error
- func (o *DestroyInfraOptions) DestroyInfra(ctx context.Context) error
- func (o *DestroyInfraOptions) DestroyInternetGateways(ctx context.Context, client ec2iface.EC2API) []error
- func (o *DestroyInfraOptions) DestroyNATGateways(ctx context.Context, client ec2iface.EC2API, vpcID *string) []error
- func (o *DestroyInfraOptions) DestroyPrivateZone(ctx context.Context, client route53iface.Route53API) error
- func (o *DestroyInfraOptions) DestroyRouteTables(ctx context.Context, client ec2iface.EC2API, vpcID *string) []error
- func (o *DestroyInfraOptions) DestroyS3Buckets(ctx context.Context, client s3iface.S3API) []error
- func (o *DestroyInfraOptions) DestroySecurityGroups(ctx context.Context, client ec2iface.EC2API, vpcID *string) []error
- func (o *DestroyInfraOptions) DestroySubnets(ctx context.Context, client ec2iface.EC2API, vpcID *string) []error
- func (o *DestroyInfraOptions) DestroyVPCEndpoints(ctx context.Context, client ec2iface.EC2API, vpcID *string) []error
- func (o *DestroyInfraOptions) DestroyVPCs(ctx context.Context, ec2client ec2iface.EC2API, elbclient elbiface.ELBAPI) []error
- func (o *DestroyInfraOptions) Run(ctx context.Context) error
- type KeyResponse
Constants ¶
View Source
const ( DefaultCIDRBlock = "10.0.0.0/16" PrivateSubnetCIDR = "10.0.128.0/20" PublicSubnetCIDR = "10.0.0.0/20" )
View Source
const (
InvalidNATGatewayError = "InvalidNatGatewayID.NotFound"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultProfileName ¶
func NewCreateCommand ¶
func NewCreateIAMCommand ¶
func NewDestroyCommand ¶
func NewDestroyIAMCommand ¶
Types ¶
type CreateIAMOptions ¶
type CreateIAMOptions struct { Region string AWSCredentialsFile string InfraID string IssuerURL string OutputFile string }
func (*CreateIAMOptions) CreateCredentialedUserWithPolicy ¶
func (*CreateIAMOptions) CreateIAM ¶
func (o *CreateIAMOptions) CreateIAM(ctx context.Context, client crclient.Client) (*CreateIAMOutput, error)
func (*CreateIAMOptions) CreateOIDCResources ¶
func (o *CreateIAMOptions) CreateOIDCResources(iamClient iamiface.IAMAPI) (*CreateIAMOutput, error)
inputs: none outputs rsa keypair
func (*CreateIAMOptions) CreateOIDCRole ¶
func (o *CreateIAMOptions) CreateOIDCRole(client iamiface.IAMAPI, name, trustPolicy, permPolicy string) (string, error)
CreateOIDCRole create an IAM Role with a trust policy for the OIDC provider
func (*CreateIAMOptions) CreateWorkerInstanceProfile ¶
func (o *CreateIAMOptions) CreateWorkerInstanceProfile(client iamiface.IAMAPI, profileName string) error
type CreateIAMOutput ¶
type CreateIAMOutput struct { Region string `json:"region"` ProfileName string `json:"profileName"` InfraID string `json:"infraID"` IssuerURL string `json:"issuerURL"` ServiceAccountSigningKey []byte `json:"serviceAccountSigningKey"` Roles []hyperv1.AWSRoleCredentials `json:"roles"` KubeCloudControllerUserAccessKeyID string `json:"kubeCloudControllerUserAccessKeyID"` KubeCloudControllerUserAccessKeySecret string `json:"kubeCloudControllerUserAccessKeySecret"` NodePoolManagementUserAccessKeyID string `json:"nodePoolManagementUserAccessKeyID"` NodePoolManagementUserAccessKeySecret string `json:"nodePoolManagementUserAccessKeySecret"` }
type CreateInfraOptions ¶
type CreateInfraOptions struct { Region string InfraID string AWSCredentialsFile string Name string BaseDomain string OutputFile string AdditionalTags []string // contains filtered or unexported fields }
func (*CreateInfraOptions) CreateDHCPOptions ¶
func (o *CreateInfraOptions) CreateDHCPOptions(client ec2iface.EC2API, vpcID string) error
func (*CreateInfraOptions) CreateInfra ¶
func (o *CreateInfraOptions) CreateInfra(ctx context.Context) (*CreateInfraOutput, error)
func (*CreateInfraOptions) CreateInternetGateway ¶
func (*CreateInfraOptions) CreateNATGateway ¶
func (*CreateInfraOptions) CreatePrivateRouteTable ¶
func (*CreateInfraOptions) CreatePrivateSubnet ¶
func (*CreateInfraOptions) CreatePrivateZone ¶
func (o *CreateInfraOptions) CreatePrivateZone(ctx context.Context, client route53iface.Route53API, vpcID string) (string, error)
func (*CreateInfraOptions) CreatePublicRouteTable ¶
func (*CreateInfraOptions) CreatePublicSubnet ¶
func (*CreateInfraOptions) CreateSubnet ¶
func (*CreateInfraOptions) CreateVPCS3Endpoint ¶
func (o *CreateInfraOptions) CreateVPCS3Endpoint(client ec2iface.EC2API, vpcID, privateRouteTableId, publicRouteTableId string) error
func (*CreateInfraOptions) CreateWorkerSecurityGroup ¶
func (*CreateInfraOptions) LookupPublicZone ¶
func (o *CreateInfraOptions) LookupPublicZone(ctx context.Context, client route53iface.Route53API) (string, error)
type CreateInfraOutput ¶
type CreateInfraOutput struct { Region string `json:"region"` Zone string `json:"zone"` InfraID string `json:"infraID"` ComputeCIDR string `json:"computeCIDR"` VPCID string `json:"vpcID"` PrivateSubnetID string `json:"privateSubnetID"` PublicSubnetID string `json:"publicSubnetID"` SecurityGroupID string `json:"securityGroupID"` Name string `json:"Name"` BaseDomain string `json:"baseDomain"` PublicZoneID string `json:"publicZoneID"` PrivateZoneID string `json:"privateZoneID"` }
type DestroyIAMOptions ¶
func (*DestroyIAMOptions) DestroyIAM ¶
func (o *DestroyIAMOptions) DestroyIAM(ctx context.Context) error
func (*DestroyIAMOptions) DestroyOIDCResources ¶
func (*DestroyIAMOptions) DestroyOIDCRole ¶
func (o *DestroyIAMOptions) DestroyOIDCRole(client iamiface.IAMAPI, name string) error
CreateOIDCRole create an IAM Role with a trust policy for the OIDC provider
func (*DestroyIAMOptions) DestroyUser ¶
func (*DestroyIAMOptions) DestroyWorkerInstanceProfile ¶
func (o *DestroyIAMOptions) DestroyWorkerInstanceProfile(client iamiface.IAMAPI) error
type DestroyInfraOptions ¶
type DestroyInfraOptions struct { Region string InfraID string AWSCredentialsFile string Name string BaseDomain string }
func (*DestroyInfraOptions) CleanupPublicZone ¶
func (o *DestroyInfraOptions) CleanupPublicZone(ctx context.Context, client route53iface.Route53API) error
func (*DestroyInfraOptions) DestroyDHCPOptions ¶
func (*DestroyInfraOptions) DestroyDNS ¶
func (o *DestroyInfraOptions) DestroyDNS(ctx context.Context, client route53iface.Route53API) []error
func (*DestroyInfraOptions) DestroyEIPs ¶
func (*DestroyInfraOptions) DestroyELBs ¶
func (*DestroyInfraOptions) DestroyInfra ¶
func (o *DestroyInfraOptions) DestroyInfra(ctx context.Context) error
func (*DestroyInfraOptions) DestroyInternetGateways ¶
func (*DestroyInfraOptions) DestroyNATGateways ¶
func (*DestroyInfraOptions) DestroyPrivateZone ¶
func (o *DestroyInfraOptions) DestroyPrivateZone(ctx context.Context, client route53iface.Route53API) error
func (*DestroyInfraOptions) DestroyRouteTables ¶
func (*DestroyInfraOptions) DestroyS3Buckets ¶
func (*DestroyInfraOptions) DestroySecurityGroups ¶
func (*DestroyInfraOptions) DestroySubnets ¶
func (*DestroyInfraOptions) DestroyVPCEndpoints ¶
func (*DestroyInfraOptions) DestroyVPCs ¶
type KeyResponse ¶
type KeyResponse struct {
Keys []jose.JSONWebKey `json:"keys"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.