PHP 클래스 S3_Uploads_WP_CLI_Command

상속: extends WP_CLI_Command
파일 보기 프로젝트 열기: humanmade/s3-uploads

공개 메소드들

메소드 설명
cp ( $args ) Copy files to / from the uploads directory. Use s3://bucket/location for S3
create_iam_user ( $args, $args_assoc ) Create an AWS IAM user for S3 Uploads to user
disable ( $args, $assoc_args ) Disable the auto-rewriting of media links to S3
enable ( $args, $assoc_args ) Ensable the auto-rewriting of media links to S3
generate_iam_policy ( ) Create AWS IAM Policy that S3 Uploads requires
ls ( $args ) List files in the S3 bukcet
migrate_attachment_to_s3 ( $args, $args_assoc ) Migrate a single attachment's files to S3
migrate_attachments_to_s3 ( $args, $args_assoc )
rm ( $args, $args_assoc ) Delete files from S3
upload_directory ( $args, $args_assoc ) Upload a directory to S3
verify_api_keys ( ) Verifies the API keys entered will work for writing and deleting from S3.

비공개 메소드들

메소드 설명
get_iam_policy ( )
recurse_copy ( $src, $dst )
verify_s3_access_constants ( ) : boolean Verify that the required constants for the S3 connections are set.

메소드 상세

cp() 공개 메소드

Copy files to / from the uploads directory. Use s3://bucket/location for S3
public cp ( $args )

create_iam_user() 공개 메소드

Create an AWS IAM user for S3 Uploads to user
public create_iam_user ( $args, $args_assoc )

disable() 공개 메소드

Disable the auto-rewriting of media links to S3
public disable ( $args, $assoc_args )

enable() 공개 메소드

Ensable the auto-rewriting of media links to S3
public enable ( $args, $assoc_args )

generate_iam_policy() 공개 메소드

It's typically not a good idea to use access keys that have full access to your S3 account, as if the keys are compromised through the WordPress site somehow, you don't want to give full control via those keys.
public generate_iam_policy ( )

ls() 공개 메소드

List files in the S3 bukcet
public ls ( $args )

migrate_attachment_to_s3() 공개 메소드

Migrate a single attachment's files to S3
public migrate_attachment_to_s3 ( $args, $args_assoc )

migrate_attachments_to_s3() 공개 메소드

public migrate_attachments_to_s3 ( $args, $args_assoc )

rm() 공개 메소드

Delete files from S3
public rm ( $args, $args_assoc )

upload_directory() 공개 메소드

Upload a directory to S3
public upload_directory ( $args, $args_assoc )

verify_api_keys() 공개 메소드

Verifies the API keys entered will work for writing and deleting from S3.
public verify_api_keys ( )