aws-sdk-go: github.com/aws/aws-sdk-go/service/s3/internal/arn Index | Files

package arn

import "github.com/aws/aws-sdk-go/service/s3/internal/arn"

Index

Package Files

accesspoint_arn.go arn.go

func IsARN Uses

func IsARN(s string) bool

IsARN returns whether the given string is an ARN

func SplitResource Uses

func SplitResource(v string) []string

SplitResource splits the resource components by the ARN resource delimiters.

type AccessPointARN Uses

type AccessPointARN struct {
    arn.ARN
    AccessPointName string
}

AccessPointARN provides representation

func ParseAccessPointResource Uses

func ParseAccessPointResource(a arn.ARN, resParts []string) (AccessPointARN, error)

ParseAccessPointResource attempts to parse the ARN's resource as an AccessPoint resource.

func (AccessPointARN) GetARN Uses

func (a AccessPointARN) GetARN() arn.ARN

GetARN returns the base ARN for the Access Point resource

type InvalidARNError Uses

type InvalidARNError struct {
    ARN    arn.ARN
    Reason string
}

InvalidARNError provides the error for an invalid ARN error.

func (InvalidARNError) Error Uses

func (e InvalidARNError) Error() string

type Resource Uses

type Resource interface {
    GetARN() arn.ARN
    String() string
}

Resource provides the interfaces abstracting ARNs of specific resource types.

func ParseResource Uses

func ParseResource(s string, resParser ResourceParser) (resARN Resource, err error)

ParseResource parses an AWS ARN into a typed resource for the S3 API.

type ResourceParser Uses

type ResourceParser func(arn.ARN) (Resource, error)

ResourceParser provides the function for parsing an ARN's resource component into a typed resource.

Package arn imports 2 packages (graph) and is imported by 6 packages. Updated 2019-12-03. Refresh now. Tools for package owners.